#! /bin/sh
# /etc/init.d/xringd: start xringd daemon.

test -f /usr/sbin/xringd || exit 0

case "$1" in
  start)
    echo -n "Starting phone line monitor:"
    echo -n " xringd"
    start-stop-daemon --quiet --start --exec /usr/sbin/xringd
    echo "."
    ;;
  stop)
    echo -n "Stopping phone line monitor:"
    echo -n " xringd"
    start-stop-daemon --quiet --stop --exec /usr/sbin/xringd
    echo "."
    ;;
  *)
    echo "Usage: /etc/init.d/xringd {start|stop}"
    exit 1
esac

exit 0
