shypike wrote:
Just start it from a terminal like this:
./SABnzbd.py -d -f /path/to/sabnzbd.ini
Note that the folders will now all be in /path/to instead of in the user's home folder.
this doesn't work either.
Todat I've tries to run the script from
http://wiki.sabnzbd.org/install-as-a-unix-daemon
I edited it to this:
Code: Select all
#!/bin/sh
case "$1" in
start)
echo "Starting SABnzbd."
/usr/bin/sudo -u USERNAME -H /opt/SABnzbd-0.6.2/SABnzbd.py -d -f /home/USERNAME/.sabnzbd/sabnzbd.ini
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/wget -q --delete-after "http://0.0.0.0:8085/sabnzbd/api?mode=shutdown&apikey=MY-API-KEY"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
In USERNAME I've place the username to log in to my My Book Live, and in MY-API-KEY I placed the api key I got from SABnzbd.
I named the script 'sabnzbd' and placed the script in /etc/init.d
I made the script executable using:
But then I tried to set up symlinks using
But it returned:
Code: Select all
update-rc.d: warning: /etc/init.d/sabnzbd missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Adding system startup for /etc/init.d/sabnzbd ...
/etc/rc0.d/K20sabnzbd -> ../init.d/sabnzbd
/etc/rc1.d/K20sabnzbd -> ../init.d/sabnzbd
/etc/rc6.d/K20sabnzbd -> ../init.d/sabnzbd
/etc/rc2.d/S20sabnzbd -> ../init.d/sabnzbd
/etc/rc3.d/S20sabnzbd -> ../init.d/sabnzbd
/etc/rc4.d/S20sabnzbd -> ../init.d/sabnzbd
/etc/rc5.d/S20sabnzbd -> ../init.d/sabnzbd
off course I took a look at the Debian wiki, but my experience with writing scripts is zero, so I don't exactly know what's wrong.
Does anyone know what the problem is?