Jump to content


deoneR

Member Since 14 Feb 2015
Offline Last Active 15 Feb 2015 20:24
-----

Topics I've Started

autostart script nzbget

14 February 2015 - 16:30

Hello,

 

My et9x00 box is running just fine but i can't seem to get nzbget to autostart on boot :(

 

i put the autostart script into /etc/init.d named it nzbget-daemon with this content:

 
#!/bin/sh

### BEGIN INIT INFO
# Provides: NZBget
# Required-Start:    $local_fs $network $remote_fs $syslog
# Required-Stop:     $local_fs $network $remote_fs $syslog
# Should-Start:      $NetworkManager
# Should-Stop:       $NetworkManager
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start NZBget at boot time
# Description: Start NZBget.
### END INIT INFO

case "$1" in
start) echo -n "Start services: NZBget"
   /usr/bin/nzbget -D
;;
stop) echo -n "Stop services: NZBget"
   /usr/bin/nzbget -Q
;;
restart)
$0 stop
$0 start
;;
*) echo "Usage: $0 start|stop|restart"
exit 1
;;
esac
exit 0

then i set the rights to 755 and executed "update-rc.d nzbget-daemon defaults"

but the daemon does not start at boot :/

 

when i run nzbget -D manually it works like a charm!

 

any ideas?

 

/e

nzbget is in /etc/bin