#!/bin/sh
#
# lpd           This shell script takes care of starting and stopping
#               xringd (ring daemon).
#
# chkconfig: 35 70 70
# description: xringd, the extended ring daemon
# processname: xringd

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/xringd ] || exit 0

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting xringd: "
        daemon xringd
        echo
        touch /var/lock/subsys/xringd
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down xringd: "
	killproc xringd
        echo
        rm -f /var/lock/subsys/xringd
        ;;
  status)
	status xringd
	;;
  restart|reload)
	killall -HUP xringd
	;;
  *)
        echo "Usage: xringd {start|stop|restart|reload|status}"
        exit 1
esac

exit 0
