diff --git a/Installation/Autostart-on-Linux.md b/Installation/Autostart-on-Linux.md index 60168a8..66a000f 100644 --- a/Installation/Autostart-on-Linux.md +++ b/Installation/Autostart-on-Linux.md @@ -182,9 +182,9 @@ Modern Linux systems have been updated to use the new `systemd` standard. This s **Create the service file** -_Be sure to modify the user, group, mono path and install directory._ +_Be sure to modify the user, group, mono path and install directory._ This example unit assumes that Sonarr's executable is placed in /opt/Sonarr. -Create the file using your favorite text editor at `/lib/systemd/system/sonarr.service` +Create the file using your favorite text editor at `/lib/systemd/system/sonarr.service`. Make sure to reload the systemd daemon afterwards using `sudo systemctl daemon-reload`. `sudo nano /lib/systemd/system/sonarr.service` @@ -203,6 +203,13 @@ TimeoutStopSec=20 KillMode=process Restart=on-failure +# These lines optionally isolate (sandbox) Sonarr from the rest of the system. +# Make sure to add any paths it might use to the list below (space-separated). +#ReadWritePaths=/opt/Sonarr /path/to/series/folder +#ProtectSystem=strict +#PrivateDevices=true +#ProtectHome=true + [Install] WantedBy=multi-user.target ```