summaryrefslogtreecommitdiff
path: root/www-apps/sonarr/files/sonarr.service-r1
blob: 542f5d7f1031181ab9e029f87c657739aef56fdd (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
28
29
30
[Unit]
Description=Sonarr is a Smart PVR for newsgroup and bittorrent users.
After=syslog.target network.target network-online.target

[Service]
User=sonarr
Group=sonarr

Type=simple
ExecStart=/opt/sonarr/Sonarr
TimeoutStopSec=20
KillMode=process
Restart=on-failure

PrivateTmp=yes
PrivateDevices=yes
PrivateMounts=yes
ProtectHome=yes
ProtectSystem=full
NoNewPrivileges=yes
ProtectHostname=yes
ProtectClock=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
RestrictRealtime=yes

[Install]
WantedBy=multi-user.target