summarylogtreecommitdiffstats
path: root/sonarr.service
diff options
context:
space:
mode:
Diffstat (limited to 'sonarr.service')
-rw-r--r--sonarr.service20
1 files changed, 14 insertions, 6 deletions
diff --git a/sonarr.service b/sonarr.service
index a4a66df47bca..d25d254b08a1 100644
--- a/sonarr.service
+++ b/sonarr.service
@@ -1,15 +1,23 @@
+# Be sure to use `systemctl edit sonarr` to modify this service with an override.conf because
+# direct changes will be overwritten by package updates.
+#
+# A user per service w/ shared group setup would have an override like:
+# [Service]
+# Group=sharedgroupname
+# UMask=002
+
[Unit]
Description=Sonarr Service
-After=network.target
+Wants=network-online.target
+After=network-online.target
[Service]
+Type=simple
User=sonarr
Group=sonarr
-ExecStart=/usr/bin/sonarr -nobrowser -data=/var/lib/sonarr
-Type=simple
-TimeoutStopSec=20
-KillMode=process
-Restart=always
+SyslogIdentifier=sonarr
+ExecStart=/usr/lib/sonarr/bin/Sonarr -nobrowser -data=/var/lib/sonarr
+Restart=on-failure
[Install]
WantedBy=multi-user.target