Hi guys,
I don't really understand how status work for custom scripts. My goal is to check many different status (for now I was just testing a simple one), so I can make other node to take command when one-node fails. I never see on the ha-debug logs, any status check (maybe I have to enable something?), if I stop the service, nothing happens either. For now, if a server drops, the other one takes command (working as expected) but not for status options. My configuration is as follows: ha.cf logfile /var/log/ha-log debugfile /var/log/ha-debug logfacility local0 keepalive 2 deadtime 10 initdead 30 ucast eth0 192.168.134.140 udpport 694 auto_failback off node ha1 node ha2 haresources ha1 orig1 authkeys auth 1 1 crc 2 sha1 SecretKey 3 md5 Hello! Resources.d/orig1 (just status part) status) RUNNING=`/etc/init.d/orig1 status` #echo $RUNNING if [ "$RUNNING" = "orig1 is stopped" ] then echo 'stopped' else echo 'running' fi RETVAL=$? ;; Thanks Mitsuo _______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems