1#! /bin/sh 2# $OpenBSD: mopd.init,v 1.1 1999/03/27 14:31:23 maja Exp $ 3# 4# chkconfig: - 60 20 5# description: The mopd server allows older DEC workstations to net boot \ 6# from Linux boxes. It (along with rarp) is rarely used anymore; \ 7# bootp and dhcp have mostly replaced both of them. 8# processname: mopd 9 10# Source function library. 11. /etc/rc.d/init.d/functions 12 13# Get config. 14. /etc/sysconfig/network 15 16# Check that networking is up. 17if [ ${NETWORKING} = "no" ] 18then 19 exit 0 20fi 21 22# See how we were called. 23case "$1" in 24 start) 25 echo -n "Starting mopd services: " 26 daemon mopd -a 27 28 echo 29 touch /var/lock/subsys/mopd 30 ;; 31 stop) 32 echo -n "Stopping mopd services: " 33 killproc mopd 34 35 echo 36 rm -f /var/lock/subsys/mopd 37 ;; 38 status) 39 status mopd 40 ;; 41 restart|reload) 42 $0 stop 43 $0 start 44 ;; 45 *) 46 echo "Usage: mopd {start|stop|status|restart|reload}" 47 exit 1 48esac 49 50exit 0 51