Page 1 of 1

autostart sab-daemon with proxychains

Posted: November 27th, 2012, 5:47 pm
by razorhail
I'm running a ubuntu server on a machine, that has sabnzbd installed.
however, I need to reroute all the connections through a http proxy.
usually i do that with proxychains (I start sab with the command "proxychains sabnzbdplus")

but I want sab to autostart as a service when I boot the machine.
how can I change the regular sabnzbdplus service so it ALWAYS starts via proxychains?

I've already tried to edit the sabnzbdplus-file in /etc/init.d/
however I'm not sure which line to change...

is there a general approach on how to change the service startup-command of applications?

Re: autostart sab-daemon with proxychains

Posted: November 27th, 2012, 8:26 pm
by krackt
Debian and derivatives are replacing SysV with Upstart. Upstart will easily do what you require. Hopefully the sab deb packages will support Upstart sometime soon.

Re: autostart sab-daemon with proxychains

Posted: November 28th, 2012, 2:07 am
by razorhail
what do I do until then? :)

I _need_ to route all my connections through this proxy - otherwise I can't really use sab

Re: autostart sab-daemon with proxychains

Posted: November 28th, 2012, 8:27 pm
by krackt

Re: autostart sab-daemon with proxychains

Posted: November 29th, 2012, 3:44 am
by razorhail
I might have misunderstood you...
but I thought u meant that upstart currently doesn't work with sab - since you said "I hope ....sab will support upstart soon"

Re: autostart sab-daemon with proxychains

Posted: November 29th, 2012, 12:07 pm
by jcfp
Whether upstart or sysv-init: integrating something like proxychains is unlikely to ever be part of the regular init script distributed in the normal packaging. So if you want it, start scripting/modifying.