[Dxspider-support] How to set up auto restart of DX spider in Centos 6?
Bob Nielsen
n7xy at clearwire.net
Sun Jan 8 23:09:10 GMT 2012
On Jan 8, 2012, at 2:09 PM, Alex Savenok wrote:
> 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
>
> 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" 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
I'm not familiar with Centos, but possibly it uses upstart, which has been adopted by several recent distribution versions. The wiki has updated information which may be helpful:
http://wiki.dxcluster.org/index.php/Configuration#Autostarting_the_cluster
73, Bob N7XY
More information about the Dxspider-support
mailing list