3 # corosync-notifyd Corosync Dbus and snmp notifier
5 # chkconfig: 2345 23 77
6 # description: Corosync Dbus and snmp notifier
7 # processname: corosync-notifyd-notifyd
10 # Provides: corosync-notifyd-notifyd
11 # Required-Start: $corosync-notifyd $cman
12 # Required-Stop: $corosync-notifyd $cman
15 # Short-Description: Starts and stops Corosync Notifier.
16 # Description: Starts and stops Corosync Notifier.
19 # Source function library
20 . /etc/rc.d/init.d/functions
26 [ -f /etc/sysconfig/corosync-notifyd ] && . /etc/sysconfig/corosync-notifyd
29 # Check if the service is already running?
30 if [ -f /var/lock/subsys/corosync-notifyd ]; then
31 msg_already_running "Corosync Notifier"
34 if grep -q nocluster /proc/cmdline ; then
35 show "Disabled on boot"
41 if is_yes "$SEND_SNMP_TRAPS" ; then
44 if [ -n "$SNMP_MANAGER" ] ; then
45 options="$options -m $SNMP_MANAGER"
47 if is_yes "$SEND_DBUS_SIGNALS" ; then
50 if is_yes "$LOG_ALL_EVENTS" ; then
53 msg_starting "Corosync Notifier"
54 daemon /usr/sbin/corosync-notifyd "$options"
56 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/corosync-notifyd
60 if [ ! -f /var/lock/subsys/corosync-notifyd ]; then
61 msg_not_running "Corosync Notifier"
66 msg_stopping "Corosync Notifier"
67 killproc /usr/sbin/corosync-notifyd
68 rm -f /var/lock/subsys/corosync-notifyd
72 if [ ! -f /var/lock/subsys/corosync-notifyd ]; then
73 msg_not_running "Corosync Notifier"
101 status corosync-notifyd
105 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"