PKGBUILDs/aur/sabnzbd/sabnzbd.service

16 lines
472 B
SYSTEMD
Raw Normal View History

2012-09-09 14:11:13 +00:00
[Unit]
Description=SABnzbd binary newsreader
2012-12-03 23:31:11 +00:00
After=network.target
2012-09-09 14:11:13 +00:00
[Service]
EnvironmentFile=/etc/conf.d/sabnzbd_systemd
2012-12-03 23:31:11 +00:00
ExecStart=/bin/sh -c "python2 ${SABNZBD_DIR}/SABnzbd.py ${SABNZBD_ARGS} --pid /run/sabnzbd"
2012-09-09 14:11:13 +00:00
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