[Dxspider-support] How to set up auto restart of DX spider in Centos 6?

Alex Savenok sawenok at gmail.com
Mon Jan 9 11:53:34 GMT 2012


Hi guys!

Thank you very much for your replies!
I'll try to play with runlevels.

Alex, 4Z5LZ-2
73!

On Mon, Jan 9, 2012 at 1:49 PM, Mike McCarthy, W1NR <lists at w1nr.net> wrote:

> Adding the script to init.d is step one. You need to enable the "service"
> using a runlevel editor like chkconfig. You can start the cluster using
> "service start dxspider".
>
> chkconfig will create a link to the script (in init.d) in one or more of
> the runlevel directories (rc0.d through rc5.d). When the system boots it
> will run the scripts in the rc directory that corresponds to the runlevel.
> In general, you should probably have dxspider start in runlevels 3
> (non-graphical) and 5 (graphical).
>
> Mike, W1NR
>
>
> On 01/08/2012 08:45 PM, Jim Bayer wrote:
>
>> Alex,
>>
>> CENTOS6 64 bit has a new init stucture. There is an /etc/init directory
>> that holds respawn instructions. I'm working out the proper script to
>> make the cluster spawn on its own.
>>
>> Jim
>>
>> *From:*dxspider-support-**bounces at dxcluster.org<dxspider-support-bounces at dxcluster.org>
>> [mailto:dxspider-support-**bounces at dxcluster.org<dxspider-support-bounces at dxcluster.org>]
>> *On Behalf Of *Alex Savenok
>> *Sent:* Sunday, January 08, 2012 4:10 PM
>> *To:* The DXSpider Support list
>> *Subject:* [Dxspider-support] How to set up auto restart of DX spider in
>>
>> Centos 6?
>>
>> Hi dxspider gurus!
>>
>> I have moved my spider node 4z5lz-2 to the new server on Centos 6, 64bits.
>> But unfortunately I can't create auto start of the node.
>> It seems that Centos 6 doesn't support configuration in /etc/inittab as
>> described in http://www.dxcluster.org/main/**spiderFAQ_en-2.html#ss2.1<http://www.dxcluster.org/main/spiderFAQ_en-2.html#ss2.1>
>>
>> I've tried to add in /etc/rc.d/init.d/dxspider:
>>
>> #!/bin/sh
>> # chkconfig: 2345 99 00
>>
>> case "$1" in
>> 'start')
>> /bin/su -c "/usr/bin/perl -w /spider/perl/cluster.pl
>> <http://cluster.pl>" cqplanet > /dev/tty7
>>
>> touch /var/lock/subsys/dxspider
>> ;;
>> 'stop')
>> rm -f /var/lock/subsys/dxspider
>> ;;
>> *)
>> echo "Usage: $0 { start | stop }"
>> ;;
>> esac
>> exit 0
>>
>> But it doesn't help me too.
>>
>> How can I solve my problem?
>>
>> Thank you very much! 73!
>> Alex
>> 4Z5LZ-2
>>
>>
>>
>> ______________________________**_________________
>> Dxspider-support mailing list
>> Dxspider-support at dxcluster.org
>> http://mailman.tobit.co.uk/**mailman/listinfo/dxspider-**support<http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support>
>>
>
>
> ______________________________**_________________
> Dxspider-support mailing list
> Dxspider-support at dxcluster.org
> http://mailman.tobit.co.uk/**mailman/listinfo/dxspider-**support<http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20120109/0dec46e4/attachment-0001.html>


More information about the Dxspider-support mailing list