Page 1 of 1

Auto start SABNZBD+

Posted: 18 Jul 2010, 10:38
by RoBo
I installed SABNZBD+ and its working perfect, the only problem is when i restart the Bubba server SABNZBD+ doesn't start. I have to start SABNZBD+ manually. Is there a solution to autostart SABNZBD+? For the one's who are looking for a way to install SABNZBD+ i followed the steps on the following link:
http://www.thibernet.com/442-install-sa ... adynas-duo

Re: Auto start SABNZBD+

Posted: 19 Jul 2010, 02:51
by Binkem
From:

http://forum.excito.net/viewtopic.php?f ... 8631#p8631
to use as a service (recommended), add this to /etc/init.d/sabnzbdplus

Code: Select all

#!/bin/sh

case "$1" in
start)
echo "Starting SABnzbd."
/usr/bin/sudo -u *USER* -H /home/*USER*/SABnzbd-0.4.11/SABnzbd.py -d -f /home/*USER*/.sabnzbd/sabnzbd.ini
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/wget -q --delete-after "http://localhost:*YOUR PORT*/sabnzbd/api?mode=shutdown&apikey=5eedee1566e5d764661a4c96498b98a0"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac

exit 0
Change *USER* and *YOUR PORT* to whatever you are using.

then make the script executable by using

Code: Select all

chmod u+x /etc/init.d/sabnzbdplus

Martijn

Re: Auto start SABNZBD+

Posted: 29 Jul 2010, 10:12
by RoBo
Hi Martijn,

i did that but it won't work, any other sugestions?

Regards

Rob