Annotation of embedaddon/mrouted/debian/init.d, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: ### BEGIN INIT INFO
3: # Provides: mrouted
4: # Required-Start: $remote_fs $syslog
5: # Required-Stop: $remote_fs $syslog
6: # Default-Start: 2 3 4 5
7: # Default-Stop: 0 1 6
8: ### END INIT INFO
9:
10: PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
11: DAEMON=/usr/sbin/mrouted
12: NAME=mrouted
13: DESC=mrouted
14:
15: test -x $DAEMON || exit 0
16:
17: set -e
18:
19: case "$1" in
20: start)
21: echo -n "Starting $DESC: "
22: modprobe ipip 2> /dev/null || true
23: start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
24: --exec $DAEMON
25: echo "$NAME."
26: ;;
27: stop)
28: echo -n "Stopping $DESC: "
29: start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/$NAME.pid \
30: --exec $DAEMON
31: echo "$NAME."
32: ;;
33: reload|force-reload)
34: echo -n "Reloading $DESC: "
35: start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/$NAME.pid \
36: --exec $DAEMON
37: echo "$NAME."
38: ;;
39: restart)
40:
41: echo -n "Restarting $DESC: "
42: start-stop-daemon --stop --quiet --pidfile \
43: /var/run/$NAME.pid --exec $DAEMON
44: sleep 1
45: start-stop-daemon --start --quiet --pidfile \
46: /var/run/$NAME.pid --exec $DAEMON
47: echo "$NAME."
48: ;;
49: *)
50: N=/etc/init.d/$NAME
51: echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
52: exit 1
53: ;;
54: esac
55:
56: exit 0
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>