Damoen can't find sabnzbd.py
Posted: January 19th, 2009, 12:03 pm
Hi
First of all i am really new to ubuntu (just installed it a few days ago - so i don't understand half of what i do) everything i do is done by some sort of guide found on the internet. Now here is the problem, i installed sabnzbd+ and it woked like a charm. Next up was to create the daemon (don't really know what that is) so i download an .sh file with the following code
and then
I then tried restarting and nothing happens, when i try the command
i get an error saying it cant find the sabnzbd.py
I did just as the manual for ubuntu says i have to do when i installed it... but it wont work..
now if i instead of
just replace it with
it works fine, but i guess something isn't as it's suppose to be right???
First of all i am really new to ubuntu (just installed it a few days ago - so i don't understand half of what i do) everything i do is done by some sort of guide found on the internet. Now here is the problem, i installed sabnzbd+ and it woked like a charm. Next up was to create the daemon (don't really know what that is) so i download an .sh file with the following code
used the following commands#! /bin/bash
## CONFIG ##
USERNAME="myusername"
HOST="localhost"
PORT="8080"
## / CONFIG ##
case "$1" in
start)
echo "Starting SABnzbd."
/usr/bin/sudo -u $USERNAME -H python /usr/share/sabnzbdplus/SABnzbd.py -f /home/$USERNAME/.sabnzbd/sabnzbd.ini --browser 0 -d
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/wget -q --delete-after "http://$HOST:$PORT/sabnzbd/api?mode=shutdown"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
Code: Select all
chmod +x ~/Desktop/sabnzbd.shCode: Select all
sudo cp ~/Desktop/sabnzbd.sh /etc/init.d
sudo update-rc.d -f sabnzbd remove
sudo update-rc.d -f sabnzbd defaultsCode: Select all
sudo /etc/init.d/sabnzbd.sh start(what is that?)/usr/share/sabnzbdplus/SABnzbd.py
I did just as the manual for ubuntu says i have to do when i installed it... but it wont work..
now if i instead of
Code: Select all
/usr/bin/sudo -u $USERNAME -H python /usr/share/sabnzbdplus/SABnzbd.py -f /home/$USERNAME/.sabnzbd/sabnzbd.ini --browser 0 -dCode: Select all
/usr/bin/sudo sabnzbdplus