File: xringd.rc

package info (click to toggle)
xringd 1.20-1
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 164 kB
  • ctags: 107
  • sloc: ansic: 863; makefile: 71; sh: 29
file content (24 lines) | stat: -rw-r--r-- 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /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