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 (12 years ago) by misho
Branches: dhcp, MAIN
CVS tags: v4_1_R7p0, v4_1_R7, v4_1_R4, HEAD
dhcp 4.1 r7

    1: #!/bin/sh
    2: # Contributed by Brian Murrell
    3:  
    4: state=$1
    5:  
    6: set `who -r`
    7: case $state in
    8:  
    9: 'start')
   10: 	if [ $9 = "2" -o $9 = "3" ]
   11: 	then
   12: 		exit
   13: 	fi
   14: 	if [ -f @PREFIX@/sbin/dhcpd ]; then
   15: 		echo "Starting the ISC DHCP server"
   16: 		@PREFIX@/sbin/dhcpd
   17: 	fi
   18: 	;;
   19: 'stop')
   20: 	if [ -f @PREFIX@/etc/dhcpd.pid ]; then
   21: 		PID=`cat @PREFIX@/etc/dhcpd.pid`
   22: 		if [ -d /proc/$PID ]; then
   23: 			echo "Stopping the ISC DHCP server"
   24: 			kill $PID
   25: 		fi
   26: 	fi
   27: 	;;
   28: esac

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