File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / dhcp / contrib / solaris.init
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Oct 9 09:06:54 2012 UTC (11 years, 8 months ago) by misho
Branches: dhcp, MAIN
CVS tags: v4_1_R7p0, v4_1_R7, v4_1_R4, HEAD
dhcp 4.1 r7

#!/bin/sh
# Contributed by Brian Murrell
 
state=$1
 
set `who -r`
case $state in
 
'start')
	if [ $9 = "2" -o $9 = "3" ]
	then
		exit
	fi
	if [ -f @PREFIX@/sbin/dhcpd ]; then
		echo "Starting the ISC DHCP server"
		@PREFIX@/sbin/dhcpd
	fi
	;;
'stop')
	if [ -f @PREFIX@/etc/dhcpd.pid ]; then
		PID=`cat @PREFIX@/etc/dhcpd.pid`
		if [ -d /proc/$PID ]; then
			echo "Stopping the ISC DHCP server"
			kill $PID
		fi
	fi
	;;
esac

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>