[Dxspider-support] UPSTART script for second cluster, Ubuntu

Gunnar Widell sm3sgp at kkn.net
Sat Feb 25 19:18:51 GMT 2012


Well,

This works (Ubuntu 10.04 LTS):

#Second DXSpider startup script
#
# This service maintains a getty on tty7 from the point the system is
# started until it is shut down again.

description "DXSpider DX Cluster 2"
start on filesystem
stop on runlevel S

respawn
umask 0002

exec /bin/su -c "DXSPIDER_ROOT=/home/sysop2/spider /usr/bin/perl -w 
/home/sysop2/spider/perl/cluster.pl &>/dev/null" sysop2


On 2012-02-25 17:25, Dirk Koopman G1TLH wrote:
> On 25/02/12 14:31, Gunnar Widell wrote:
>> Hi,
>>
>> Trying to figure out how to make a dxspider2.conf for a second instance
>> of dx-spider.
>> Something like this? But it does NOT work.
>>
>> (main process terminated with status 2)
>>
>> Help!
>>
>> 73 de Gunnar SM3SGP
>>
>> #DXSpider startup script
>> #
>> # This service maintains a getty on tty7 from the point the system is
>> # started until it is shut down again.
>>
>> description "DXSpider2 DX Cluster"
>> start on filesystem
>> stop on runlevel S
>>
>> respawn
>>
>> exec /bin/su - sysop2 -c "DXSPIDER_ROOT=/home/sysop2/spider
>> /usr/bin/perl -w $DXSPIDER_ROOT/perl/cluster.pl &>/dev/null" sysop2
>
> I think it should be:
>
> description "DXSpider DX Cluster 2"
> start on filesystem
> stop on runlevel S
>
> respawn
> umask 0002
> exec su -c "DXSPIDER_ROOT=/home/sysop2/spider /usr/bin/perl -w 
> $DXSPIDER_ROOT/perl/cluster.pl >/dev/null 2>&1" sysop2
>
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at dxcluster.org
> http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support




More information about the Dxspider-support mailing list