From 0667deb1b98438cbacac5fade45078b449225fb0 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sun, 10 Mar 2019 18:46:56 +0100 Subject: [PATCH] Revert "Touch up the systemd unit to add optional sandboxing parameters" This reverts commit 596e5303d38c9a1ef135af8456f8a643d834e476. Reverted due to contradictions: 1. The unit specifies /opt/NzbDrone as startup (which is still true to Sonarr v2). 2. Sandbox isolation is out of scope of the example and 99% of the users would not be able to use it properly. It would have to contain the download client folder, temp folder, Sonarr appdata folder access etc. Users that might be inclined to use sandboxing should refer to the systemd documentation and these instructions should not be included in the example. If you want to talk about it, contact us on IRC, forum or discord. --- Installation/Autostart-on-Linux.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Installation/Autostart-on-Linux.md b/Installation/Autostart-on-Linux.md index 66a000f..60168a8 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._ This example unit assumes that Sonarr's executable is placed in /opt/Sonarr. +_Be sure to modify the user, group, mono path and install directory._ -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`. +Create the file using your favorite text editor at `/lib/systemd/system/sonarr.service` `sudo nano /lib/systemd/system/sonarr.service` @@ -203,13 +203,6 @@ 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 ```