3

Can't get startup script to work

view full story
linux-howto

http://forums.opensuse.org – Hi all :) I'm having some problems getting my sabnzbd script to run on startup. I'm sure it's some small thing I've forgotten, but for the life of me I can't find out why it's not working :P Code: /etc/inid.t -rwxr-xr-x  1 root root  394 2009-12-04 12:50 sabdaemon Symbolic links in /etc/init.d/rc5.d Code: lrwxrwxrwx  1 root root  21 2009-12-04 13:03 K99sabdaemon -> /etc/init.d/sabdaemon lrwxrwxrwx  1 root root  21 2009-12-04 13:03 S99sabdaemon -> /etc/init.d/sabdaemon The script itself, note that it does run when I start it with ./sabdaemon start Code: #! /bin/sh case "$1" in start)   echo "Starting SABnzbd."   /usr/bin/sudo -u xenth -H "/home/xenth/apps/linux/sabnzbd/sabnzbd-0.4.12/SABnzbd.py" -d -f /home/xenth/. sabnzbd/sabnzbd.ini ;; stop)   echo "Shutting down SABnzbd."   /usr/bin/wget -q --delete-after "http://localhost:8080/sabnzbd/api?mode=shutdown&apikey=ENTERAPIKEYHERE" ;; *)   echo "Usage: $0 {start|stop}"   exit 1 esac exit 0 Thanks in advance :) (Distributions)