mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
15 lines
472 B
Desktop File
15 lines
472 B
Desktop File
[Unit]
|
|
Description=SABnzbd binary newsreader
|
|
After=network.target
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/conf.d/sabnzbd_systemd
|
|
ExecStart=/bin/sh -c "python2 ${SABNZBD_DIR}/SABnzbd.py ${SABNZBD_ARGS} --pid /run/sabnzbd"
|
|
ExecStop=/usr/bin/curl -f "${SABNZBD_PROTOCOL}://${SABNZBD_USPW}${SABNZBD_IP}:${SABNZBD_PORT}/sabnzbd/api?mode=shutdown&apikey=${SABNZBD_KEY}"
|
|
Type=forking
|
|
PIDFile=/run/sabnzbd/sabnzbd-8080.pid
|
|
User=sabnzbd
|
|
Group=sabnzbd
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|