bket ada5a2af97 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.
2019-05-06 18:29:59 +00:00

15 lines
297 B
Bash

#!/bin/ksh
#
# $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 /var/sabnzbd"
daemon_timeout=120
daemon_user="_sabnzbd"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_cmd $1