I have tried to install SABnzbd+ on my WDTV Live.
Everything got installed the only problem is the Autostart script i just cant get it to work.
When i run the following command from the script its working:
- Code: Select all
/opt/bin/python2.6 /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/sabnzbd.ini -d
But when i put this script.
- Code: Select all
#!/opt/bin/bash
case "$1" in
start)
echo "Starting SABnzbd."
/opt/bin/python2.6 /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/sabnzbd.ini -d
;;
stop)
echo "Shutting down SABnzbd."
wget -q --delete-after "http://localhost:8080/sabnzbd/api?mode=shutdown&ma_username=[USER]&ma_password=[PASS]&apikey=[APIKEY]"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
exit 0
And put it in /opt/etc/init.d/ with the following name S89SABnzbd and give it the chmod command +x and restart my WDlive it wont autostart.
Can someone help me :S Thanks


