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 2011-10-11 18:27:17

tjfriese
New member
Registered: 2011-10-11
Posts: 3

How to auto start a script in a Debian CHROOT environment

Hello,

I have installed DEBNAS on my DNS-323. I have upgraded it from Etch to Lenny. I have installed the latest version of SABnzbd and got it configured and running.

My question is, how do I get SABnzbd to start automatically when I power on the DNS-323? The DNS-323 will currently load the Debian Lenny CHROOT environment. I am able to then SSH into the DNS-323 Debian Lenny CHROOT environment and run SABnzbd with the following command:

python /opt/SABnzbd-0.6.9/SABnzbd.py -d -f ~/.sabnzbd/sabnzbd.ibi

I have placed the above line in a file, made the file executables (chmod a+rx) and can start SABnzbd by running the script.

Here is what I have tried:

-Placing the line to start SABnzbd at the end of the DEBNAS fun_plug script. This will not start SABnzbd when I power on the DNS-323.
-Adding the SABnzbd script to the startup sequence using rc-update. This will not start SABnzbd when I power on the DNS-323.
-Adding a /ffp/start directory to Volume_1 and placing the SABnzbd script in that directory. This will not start SABnzbd when I power on the DNS-323.

I have searched this forum and Googled with no luck. How do I get SABnzbd to start automatically when I power on my DNS-323 running a Debian Lenny CHROOT environment?

Any help, at this point, would be greatly appreciated.

Thanks,

Tim

Last edited by tjfriese (2011-10-11 18:27:43)

Offline

 

#2 2011-10-13 06:48:19

tjfriese
New member
Registered: 2011-10-11
Posts: 3

Re: How to auto start a script in a Debian CHROOT environment

If no one knows the answer to this question, can someone direct me to a place where I can ask for or look up this information? I understand that it isn't directly related to the DNS-323, but I am at a loss as to where else to go at this point.

Offline

 

#3 2011-10-13 21:37:17

bjby
Member
Registered: 2009-02-22
Posts: 265

Re: How to auto start a script in a Debian CHROOT environment

Maybe, you could try some dirty trick to try to start it in cron every 5 min or so.

Offline

 

#4 2011-10-14 17:57:20

Le_candide
Member
Registered: 2011-10-14
Posts: 7

Re: How to auto start a script in a Debian CHROOT environment

Hello,
You can add your command :
python /opt/SABnzbd-0.6.9/SABnzbd.py -d -f ~/.sabnzbd/sabnzbd.ibi
in the script /boot/linuxrc

Last edited by Le_candide (2011-12-12 14:05:15)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB