[Dxspider-support] Auto-spawn with "upstart"
djk at tobit.co.uk
Mon Jan 1 11:57:58 CET 2007
On Sun, 2006-12-31 at 17:41 -0500, Steve Murphy wrote:
> Hello everyone,
> I recently switched my node over to a Linux system that uses "upstart"
> instead of init.d. Since I'm extremely lazy,
> does anyone have an upstart script written for DXSpider that they'd be
> willing to share?
"upstart"? Never heard of it. In any case, the recommended way of
starting DXSpider is to stick a line like:-
sp:2345:respawn:su -c "perl /spider/perl/cluster.pl > /dev/null 2>&1" spider
into /etc/inittab and then doing a 'telinit q' (or rebooting) to
activate it. I don't recommend using an init script (nor anything like
it because anything that one would want to do merely tries (and usually
fails) to simulate what /etc/inittab does already [in particular: sanely
restarting the node automatically on failure]).
Having said that, I am now looking at the documentation of "upstart" and
I shall see whether I can do something. However, I suspect that it will
not replace the inittab route as being the most reliable method.
More information about the Dxspider-support