summarylogtreecommitdiffstats
path: root/sonarr.service
blob: 268d0b22d4c39990e773cfa0b9ec8c3472525f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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 Daemon
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=sonarr
Group=sonarr
SyslogIdentifier=sonarr
Environment=XDG_DATA_HOME=/var/lib/sonarr
WorkingDirectory=/usr/lib/sonarr
ExecStart=/usr/lib/sonarr/bin/Sonarr -nobrowser -data=/var/lib/sonarr
Restart=on-failure
RestartSec=5
KillMode=process

[Install]
WantedBy=multi-user.target