The SabNZBd init script currently tries to read the pid_file (as part of the start routine) before it is created by SabNZBd. The result is: # /etc/init.d/sabnzbd start * Starting SABnzbd ... * start-stop-daemon: fopen `/var/run/sabnzbd/sabnzbd-8090.pid': No such file or directory * start-stop-daemon: did not create a valid pid in `/var/run/sabnzbd/sabnzbd-8080.pid' [ !! ] * ERROR: sabnzbd failed to start although it does actually start the process. I did try adjusting this so we use the start-stop-daemon to make the pidfile and background the process rather than have SabNZBd do it. However SabNZBd then loses track of the PID and the URL based shutdown doesn't work so this isn't an ideal workaround... 23c23,25 < --pidfile $(get_pidfile) \ --- > --make-pidfile \ > --background \ > --pidfile ${RUNDIR}/sabnzbd.pid \ 28,29c30 < --daemon \ < --pid "${RUNDIR}" --- > --daemon 79c80 < [ ! -s $(get_pidfile) ] && break --- > [ ! -s ${RUNDIR}/sabnzbd.pid ] && break 83c84 < if [ -s $(get_pidfile) ]; then --- > if [ -s $RUNDIR/sabnzbd.pid ]; then 88c89 < --pidfile $(get_pidfile) \ --- > --pidfile ${RUNDIR}/sabnzbd.pid \ FYI: sys-apps/openrc Latest version available: 0.11.8 Latest version installed: 0.11.8
Please add a proper unified patch as an attachment instead.
I (In reply to Tom Wijsman (TomWij) from comment #1) > Please add a proper unified patch as an attachment instead. I can happily do this however, the code I added to the digest was a workaround which doesn't actually solve the problem. I didn't want to make it seem like I'd fixed the issue entirely and was just showing my thought process.
This bug is fixed by: https://bugs.gentoo.org/show_bug.cgi?id=483786