File: xringd.init

package info (click to toggle)
xringd 1.20-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 168 kB
  • ctags: 109
  • sloc: ansic: 863; makefile: 71; sh: 29
file content (31 lines) | stat: -rw-r--r-- 735 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
25
26
27
28
29
30
31
#! /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 "."
    ;;
  restart|reload|force-reload)
    echo -n "Re-starting phone line monitor:"
    echo -n " xringd"
    start-stop-daemon --quiet --stop --exec /usr/sbin/xringd
    start-stop-daemon --quiet --start --exec /usr/sbin/xringd
    echo "."
    ;;
  *)
    echo "Usage: /etc/init.d/xringd {start|stop}"
    exit 1
esac

exit 0