blob: 21e9f8843c0eebf0ff02a80076efbcf9d5f33838 (
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
|
# copy or _hard_link to
# Debian: /lib/systemd/system/sabnzbd@.service
# others: /usr/lib/systemd/system/sabnzbd@.service
#
# To start SABNzbd once for USER use:
# systemctl start sabnzbd@USER.service
#
# To enable and start SABNzbd for USER use:
# systemctl enable --now sabnzbd@USER.service
#
# Config will be placed in ~USER/.sabnzbd/
[Unit]
Description=SABnzbd binary newsreader
Documentation=https://sabnzbd.org/wiki/
Wants=network-online.target
After=network-online.target
[Service]
# Default location is ~/.sabnzbd/sabnzbd.ini, but package previously used ~/.sabnzbd.ini so default to that
ExecStart=/usr/lib/sabnzbd/SABnzbd.py --logging 1 --browser 0 --config-file /home/%I/.sabnzbd.ini
User=%I
Group=%I
Type=simple
Restart=on-failure
[Install]
WantedBy=multi-user.target
|