Jump to content


Photo

autostart script nzbget


  • Please log in to reply
4 replies to this topic

#1 deoneR

  • Member
  • 3 posts

0
Neutral

Posted 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

 

 


Edited by deoneR, 14 February 2015 - 16:31.


Re: autostart script nzbget #2 erkman

  • Senior Member
  • 90 posts

+2
Neutral

Posted 14 February 2015 - 16:59

i think there must be a symlink to rc3.d

 

ln -s /etc/init.d/script_name /etc/rc3.d/S01script_name

 

scriptname = your nzbget script


ET9200 openpli 6.2 ET4000 openpli 4 Solo2 openpli 7.2


Re: autostart script nzbget #3 deoneR

  • Member
  • 3 posts

0
Neutral

Posted 15 February 2015 - 16:44

hm i did that now and it still won't work :(



Re: autostart script nzbget #4 deoneR

  • Member
  • 3 posts

0
Neutral

Posted 15 February 2015 - 17:26

any idea how i can troubleshoot this? i really need this to work



Re: autostart script nzbget #5 erkman

  • Senior Member
  • 90 posts

+2
Neutral

Posted 15 February 2015 - 20:43

not sure but if i understand right your nzbget-daemon script it need some argument like start stop restart.

think you must add a script like

#!/bin/sh

/etc/init.d/nzbget-daemon start

and link this to rc3.d


ET9200 openpli 6.2 ET4000 openpli 4 Solo2 openpli 7.2



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users