From: Ted Lemon Date: Mon, 4 Oct 1999 23:04:43 +0000 (+0000) Subject: Solaris /etc/rc.d script for dhcp server. X-Git-Tag: V3-BETA-1-PATCH-2~5^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27c1be6b2eff2a96cbc3e6f373da2ae1bdb824e4;p=thirdparty%2Fdhcp.git Solaris /etc/rc.d script for dhcp server. --- diff --git a/contrib/solaris.init b/contrib/solaris.init new file mode 100644 index 000000000..2c79898a5 --- /dev/null +++ b/contrib/solaris.init @@ -0,0 +1,28 @@ +#!/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