On Thu, 2010-09-09 at 16:35 +0100, Daniel Machado Grilo wrote: > Another way to do this is if you choose LSB instead of OCF category > primitives. > That way you just select the init script from your init.d and thats it.
You do need to ensure that your init script is LSB compliant. This includes but is not limited to returning success when a stop is attempted when it is already stopped. Some init scripts I have seen do not do this right. Which means this may or may not work correctly. As an example, on CentOS 5.5 on a system that is running neither service right now: [r...@vmserve woods]# ps ax | fgrep named 10329 pts/7 S+ 0:00 fgrep named [r...@vmserve woods]# ps ax | fgrep dhcpd 15451 pts/7 S+ 0:00 fgrep dhcpd [r...@vmserve woods]# service named stop Stopping named: [ OK ] [r...@vmserve woods]# echo $? 0 [r...@vmserve woods]# service dhcpd stop [r...@vmserve woods]# echo $? 7 [r...@vmserve woods]# The named script does the right thing but the dhcpd script does not. --Greg _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
