Hello everyone
I'm trying to get SabNZB to run at startup.
Added it to /etc/init.d/ folder location.
able to use 'service SABNzB to start and stop SabNZB.
Permissions are as follow
Run level configuration.
Script being called
I've looked around and it appears everything should be working correctly with this setup but it does not start up.
Anyone have any ideas as to what i need to change to get it to run at start up?
I'm trying to get SabNZB to run at startup.
Added it to /etc/init.d/ folder location.
able to use 'service SABNzB to start and stop SabNZB.
Permissions are as follow
-rwxr-xr-x. 1 root root 495 Jan 18 17:22 /etc/init.d/SABNzB
Run level configuration.
chkconfig --list SABNzB
SABNzB 0ff 1ff 2ff 3n 4ff 5n 6ff
Script being called
#!/bin/sh
#chkconfig: 2345 99 10
#description: NZB download service
case "$1" in
start)
echo "Starting SABnzbd."
/usr/bin/sudo -u scriptexe -H /usr/local/SABnzbd-0.5.0/SABnzbd.py -d -f /home/scriptexe/.sabnzbd/sabnzbd.ini
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/wget -q --delete-after "http://192.168.10.70:8080/sabnzbd/api?mode=shutdown&ma_username=USER&ma_password=PASSWORD&apikey=SUPER SECRET API KEY"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
I've looked around and it appears everything should be working correctly with this setup but it does not start up.
Anyone have any ideas as to what i need to change to get it to run at start up?