File: init.d

package info (click to toggle)
rarpd 0.981107-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 56 kB
  • ctags: 53
  • sloc: ansic: 616; makefile: 43; sh: 29
file content (35 lines) | stat: -rw-r--r-- 694 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
32
33
34
35
#!/bin/sh

# Default options
OPTS="-e -v"

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

PATH=/sbin:/bin:/usr/sbin:/usr/bin
set -e

case "$1" in
  start)
	echo -n "Starting RARP daemon: "
	start-stop-daemon --start --quiet --exec /usr/sbin/rarpd -- $OPTS
	echo "rarpd."
	;;
  stop)
	echo -n "Stopping RARP daemon: "
	start-stop-daemon --stop --quiet --exec /usr/sbin/rarpd
	echo "rarpd."
	;;
  restart|force-reload)
	echo -n "Restarting RARP daemon: "
	start-stop-daemon --stop --quiet --exec /usr/sbin/rarpd
	sleep 1
	start-stop-daemon --start --quiet --exec /usr/sbin/rarpd -- $OPTS
	echo "rarpd."
	;;
  *)
	echo "Usage: /etc/init.d/rarpd {start|stop|restart|force-reload}" >&2
	exit 1
	;;
esac

exit 0