summaryrefslogtreecommitdiff
path: root/usr.sbin/mopd/otherOS/linux2/mopd.init
blob: e037db17e4f7d62b1c889aa1602f4406f2d0ed95 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /bin/sh
# $OpenBSD: mopd.init,v 1.1 1999/03/27 14:31:23 maja Exp $
#
# chkconfig: - 60 20
# description: The mopd server allows older DEC workstations to net boot \
#              from Linux boxes. It (along with rarp) is rarely used anymore; \
#              bootp and dhcp have mostly replaced both of them.
# processname: mopd

# Source function library.
. /etc/rc.d/init.d/functions

# Get config.
. /etc/sysconfig/network

# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
	exit 0
fi

# See how we were called.
case "$1" in
  start)
	echo -n "Starting mopd services: "
	daemon mopd -a

	echo
	touch /var/lock/subsys/mopd
	;;
  stop)
	echo -n "Stopping mopd services: "
	killproc mopd

	echo
	rm -f /var/lock/subsys/mopd
	;;
  status)
	status mopd
	;;
  restart|reload)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: mopd {start|stop|status|restart|reload}"
	exit 1
esac

exit 0