#!/bin/bash
# chkconfig: 12345 20 20
# description: Host heartbeat application
# processname: linhb
. /etc/rc.d/init.d/functions
export PATH=/usr/sbin:$PATH

case "$1" in
  start)
	echo -n "Starting linhb: "
        daemon /usr/sbin/linhb
	touch /var/lock/subsys/linhb
	echo
	;;
  stop)
	echo -n "Shutting down linhb: "
	killproc linhb
	rm -f /var/lock/subsys/linhb
	echo
	;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
	echo "Usage: heartbeat {start|stop|restart}"
	exit 1
esac

exit 0
