Probably not lsb compliant. http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/ap-lsb.html
On Wed, Apr 13, 2011 at 10:58 PM, Gerry Kernan <gerry.ker...@infinityit.ie> wrote: > Hi > > I am setting up a asterisk HA solution using a redfone device for the PRI > lines. To start the device i need to run /etc/init.d/fonulator.init i have > added this as a resource but it won't start and give an error as below on crm > status output. > The config is below , hopefully someone can point out where i am going wrong. > > res_fonulator.init_fonulator (lsb:fonulator.init): Started > ho-asterisk2-11314.interlink.local (unmanaged) FAILED > > out of crm configure show > > node $id="a7314e15-8bb1-4b2e-a732-888db0c7b7d7" > ho-asterisk1-11315.interlink.local > node $id="c0630b83-3c16-49c7-a55a-2c65ea0155ed" > ho-asterisk2-11314.interlink.local > primitive res_Filesystem_1 ocf:heartbeat:Filesystem \ > params device="/dev/drbd0" directory="/rep/" fstype="ext3" \ > operations $id="res_Filesystem_1-operations" \ > op start interval="0" timeout="60" \ > op stop interval="0" timeout="60" \ > op monitor interval="20" timeout="40" start-delay="0" > primitive res_IPaddr2_IPaddr ocf:heartbeat:IPaddr2 \ > params ip="10.1.2.98" nic="eth0" cidr_netmask="24" \ > operations $id="res_IPaddr2_IPaddr-operations" \ > op start interval="0" timeout="20" \ > op stop interval="0" timeout="20" \ > op monitor interval="10" timeout="20" start-delay="0" > primitive res_dahdi_dahdi lsb:dahdi \ > operations $id="res_dahdi_dahdi-operations" \ > op start interval="0" timeout="15" \ > op stop interval="0" timeout="15" \ > op monitor interval="15" timeout="15" start-delay="15" > primitive res_drbd_1 ocf:linbit:drbd \ > params drbd_resource="asterisk" \ > operations $id="res_drbd_1-operations" \ > op start interval="0" timeout="240" \ > op promote interval="0" timeout="90" \ > op demote interval="0" timeout="90" \ > op stop interval="0" timeout="100" \ > op monitor interval="10" timeout="20" start-delay="0" > primitive res_fonulator.init_fonulator lsb:fonulator.init \ > operations $id="res_fonulator.init_fonulator-operations" \ > op start interval="0" timeout="15" \ > op stop interval="0" timeout="15" \ > op monitor interval="15" timeout="15" start-delay="15" > primitive res_httpd_httpd lsb:httpd \ > operations $id="res_httpd_httpd-operations" \ > op start interval="0" timeout="15" \ > op stop interval="0" timeout="15" \ > op monitor interval="15" timeout="15" start-delay="15" > primitive res_mysqld_mysql lsb:mysqld \ > operations $id="res_mysqld_mysql-operations" \ > op start interval="0" timeout="15" \ > op stop interval="0" timeout="15" \ > op monitor interval="15" timeout="15" start-delay="15" > ms ms_drbd_1 res_drbd_1 \ > meta clone-max="2" notify="true" > colocation col_res_Filesystem_1_ms_drbd_1 inf: res_Filesystem_1 > ms_drbd_1:Master > order ord_ms_drbd_1_res_Filesystem_1 inf: ms_drbd_1:promote > res_Filesystem_1:start > property $id="cib-bootstrap-options" \ > default-resource-stickiness="100" \ > stonith-enabled="false" \ > stonith-action="poweroff" \ > dc-version="1.0.10-da7075976b5ff0bee71074385f8fd02f296ec8a3" \ > default-resource-failure-stickiness="100" \ > no-quorum-policy="ignore" \ > cluster-infrastructure="Heartbeat" \ > last-lrm-refresh="1302723679" > > > /etc/init.d/fonutalor.init > > > #!/bin/bash > # > # fonulator Starts and Stops the Redfone fonulator utility > # > # chkconfig: - 60 50 > # description: Utility for configuring the Redfone fonebridge > # > # processname: fonulator > # config: /etc/redfone.conf > > # Source function library. > . /etc/rc.d/init.d/functions > > # Source networking configuration. > . /etc/sysconfig/network > > # Check that networking is up. > [ ${NETWORKING} = "no" ] && exit 0 > > [ -x /usr/local/bin/fonulator ] || exit 0 > > RETVAL=0 > prog="fonulator" > > start() { > # Start daemons. > > if [ -d /etc/ ] ; then > for i in `ls /etc/redfone.conf`; do > site=`basename $i .conf` > echo -n $"Starting $prog for $site: " > /usr/local/bin/fonulator $i > RETVAL=$? > [ $RETVAL -eq 0 ] && { > touch /var/lock/subsys/$prog > success $"$prog $site" > } > echo > done > else > RETVAL=1 > fi > return $RETVAL > } > > stop() { > # Stop daemons. > echo -n $"Shutting down $prog: " > killproc $prog > RETVAL=$? > echo > [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog > return $RETVAL > } > > # See how we were called. > case "$1" in > start) > start > ;; > stop) > stop > ;; > restart|reload) > stop > start > RETVAL=$? > ;; > condrestart) > if [ -f /var/lock/subsys/$prog ]; then > stop > start > RETVAL=$? > fi > ;; > status) > status $prog > RETVAL=$? > ;; > *) > echo $"Usage: $0 {start|stop|restart|condrestart|status}" > exit 1 > esac > > exit $RETVAL > > Regards, > Gerry Kernan > InfinityIT > > Suite 17 The Mall, > Beacon court, > Sandyford, > Dublin 18. > > p:+353-1-2930090 > f:+353-1-2930137 > > > > _______________________________________________ > 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 > _______________________________________________ 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