DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-04-12 13:12:58

truxntrax
Member
Registered: 2007-11-16
Posts: 33

Automatically starting SABnzbd after reboot - etch chroot

Hello,

I am trying to start SABnzbd automatically after a dlink reboot.

I have a chooted debain etch environment - funplug v 0.4, firmware v 1.04.

I have made the following script and saved it to mnt/HD_a2/etch/etc/init.d/

########
#!/bin/sh

cd /SABnzbd
python SABnzbd.py -f SABnzbd.ini &
########

The file is called startsab (set permissions to chmod a+x)

I have added the following line to the bottom of the funplug script:

cd /mnt/HD_a2/ &&  chroot etch /etc/init.d/startsab start
echo "* Done" >>${LOGFILE}

Why doesn't this start the sabnzbd automatically?  If i run python SABnzbd.py -f SABnzbd.ini & directly from the directory ./SABnzbd the application starts up and works ok.

If I run the following: ./startsab from the directory ./etc/init.d againthe application starts ok.

I hope someone can help - i assume the line I have entered in the fun_lug script is wrong but I do not know what to change it to.

Thanks

Trux

Offline

 

#2 2008-04-19 11:45:22

truxntrax
Member
Registered: 2007-11-16
Posts: 33

Re: Automatically starting SABnzbd after reboot - etch chroot

Bump

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB