1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-03 05:35:29 +00:00

Touch up the systemd unit to add optional sandboxing parameters

NanoSector 2019-03-10 17:43:23 +01:00
parent 5f31377f03
commit 596e5303d3

@ -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
```