File: atm-tools.atm

package info (click to toggle)
linux-atm 2.4.0-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,892 kB
  • ctags: 6,138
  • sloc: ansic: 40,265; sh: 8,968; yacc: 1,181; lex: 555; makefile: 433; perl: 162
file content (25 lines) | stat: -rw-r--r-- 762 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
#!/bin/sh
# Start/stop the atm daemon(s).

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

case "$1" in
start)  echo -n "Starting ATM ARP Daemon: "
        start-stop-daemon --start --quiet --exec /usr/sbin/atmarpd -b
        /bin/sleep 2
        echo "atmarpd."
        ;;
stop)   echo -n "Stopping ATM ARP Daemon: "
        start-stop-daemon --stop --quiet --exec /usr/sbin/atmarpd
        echo "atmarpd."
        ;;
restart|force-reload) echo -n "Re-starting ATM ARP Daemon: "
        start-stop-daemon --stop --quiet --exec /usr/sbin/atmarpd
        start-stop-daemon --start --quiet --exec /usr/sbin/atmarpd -b
        /bin/sleep 2
        echo "atmarpd."
        ;;
*)      echo "Usage: /etc/init.d/atm start|stop|restart|force-reload"; exit 1
        ;;
esac
exit 0