[Dxspider-support] Next question
Bob Nielsen
n7xy at clearwire.net
Tue Apr 12 08:52:16 BST 2011
On Apr 12, 2011, at 12:07 AM, Ian Maude wrote:
> Can someone let me have a nice elegant script for Upstart in Ubuntu 10.04 please? By the looks of it, I need to create one and drop it into the 'init' directory?
I don't know if Ubuntu has changed again, but here is what I use on my Sheevaplug (Marvell ARM-based $99 "plug" computer), which runs Ubuntu 9.04. The plug device has been quite solid (and doesn't look that easy to upgrade so I have refrained from doing so):
#DXSpider startup script
#
start on runlevel 2
start on runlevel 3
stop on runlevel 0
stop on runlevel 1
stop on runlevel 4
stop on runlevel 5
stop on runlevel 6
respawn
exec /bin/su - sysop -c "/usr/bin/perl -w /spider/perl/cluster.pl" >/home/sysop/cluster.log
#end of startup script
The script i had added to the wiki was similar, except that the exec line redirected the output to a tty, which the headless sheevaplug doesn't have.
Bob, N7XY
More information about the Dxspider-support
mailing list