Fix daemon_flags in sabnznd.rc.

Current daemon flags are:

daemon_flags="-b 0 -f ${datadir} -p ${datadir}/sabnzbd.pid"

Intention is to be:

daemon_flags="-b 0 -f ${datadir} --pidfile ${datadir}/sabnzbd.pid"

Notice "--pidfile" instead of "-p". "-p" starts the daemon paused, which
isn't desired for most people. Additionally, the entire PID option can
be omitted.

Addressed offlist by Nick Templeton <nick () nicktempleton ! com>. Diff
by me.
This commit is contained in:
bket 2019-05-06 18:29:59 +00:00
parent a13f8d4bdd
commit ada5a2af97
2 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,8 @@
# $OpenBSD: Makefile,v 1.19 2019/04/27 23:55:04 sthen Exp $
# $OpenBSD: Makefile,v 1.20 2019/05/06 18:29:59 bket Exp $
COMMENT = retrieve and process nzb-files via web interface
VERSION = 2.3.8
REVISION = 0
DISTNAME = SABnzbd-${VERSION}
PKGNAME = sabnzbd-${VERSION}
CATEGORIES = news

View File

@ -1,11 +1,9 @@
#!/bin/ksh
#
# $OpenBSD: sabnzbd.rc,v 1.4 2018/12/12 19:54:32 bket Exp $
datadir="/var/sabnzbd"
# $OpenBSD: sabnzbd.rc,v 1.5 2019/05/06 18:29:59 bket Exp $
daemon="${MODPY_BIN} ${TRUEPREFIX}/lib/python${MODPY_VERSION}/site-packages/sabnzbd/SABnzbd.py -d"
daemon_flags="-b 0 -f ${datadir} -p ${datadir}/sabnzbd.pid"
daemon_flags="-b 0 -f /var/sabnzbd"
daemon_timeout=120
daemon_user="_sabnzbd"