File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / dhcp / contrib / solaris.init
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 22:30:18 2012 UTC (12 years, 4 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

#!/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>