3 # ipmievd daemon to send events to syslog
5 # chkconfig: 2345 80 30
7 # description: ipmievd daemon to send events to syslog
9 # Description: Start ipmievd to read events from BMC and
11 # Events correspond to hardware faults,
12 # state transitions such as power on and off, and sensor
13 # readings such as temperature, voltage and fan speed that
16 # processname: ipmievd
17 # config: /etc/sysconfig/ipmievd
21 # Source function library
22 . /etc/rc.d/init.d/functions
25 IPMIEVD_INTERFACE=open
27 # Get service config - may override defaults
28 [ -f /etc/sysconfig/ipmievd ] && . /etc/sysconfig/ipmievd
31 # Check if the service is already running?
32 if [ -f /var/lock/subsys/ipmievd ]; then
33 msg_already_running "ipmievd"
37 msg_starting "ipmievd"
38 daemon /usr/sbin/ipmievd -I $IPMIEVD_INTERFACE $IPMIEVD_OPTIONS
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ipmievd
44 if [ ! -f /var/lock/subsys/ipmievd ]; then
45 msg_not_running "ipmievd"
50 msg_stopping "ipmievd"
52 rm -f /var/lock/subsys/ipmievd
56 if [ ! -f /var/lock/subsys/ipmievd ]; then
57 msg_not_running "ipmievd"
67 # See how we were called.
90 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"