dhcpd script

A Bell Is A Cup Until It Is Struck a_bell_is_a_cup_until_it_is_struck at hotmail.com
Wed Apr 4 13:10:42 UTC 2007


I wouldn't mind having a look-see at the solaris10 scripts; if you could 
post those or email them off-list I'd appreciate it a great deal.

thanks,
-d.
--
a bell is a cup...until it is struck.

----- Original Message -----
From: "Glenn Satchell" <Glenn.Satchell at uniq.com.au>
To: <dhcp-users at isc.org>
Sent: Wednesday, April 04, 2007 9:00 AM
Subject: Re: dhcpd script

>
>>X-Original-To: dhcp-users at webster.isc.org
>>Content-class: urn:content-classes:message
>>Subject: dhcpd script
>>Date: Wed, 4 Apr 2007 10:15:40 +0800
>>Thread-Topic: LeaseQuery bug (?) in 3.1.0a3
>>Thread-Index: Acd2AeiN+aY5U+7TRB6TgqhC7u5Q4wAXPnTg
>>From: "Chow Chi Ho \(FP&HO\)" <chchow at cabletv.com.hk>
>>To: <dhcp-users at isc.org>
>>X-archive-position: 3350
>>X-ecartis-version: Ecartis v1.0.0
>>X-original-sender: chchow at cabletv.com.hk
>>List-software: Ecartis version 1.0.0
>>X-List-ID: <dhcp-users.isc.org>
>>X-list: dhcp-users
>>
>>Hi all,
>>
>>Where can I find the /etc/init.d/dhcpd script ?
>>
>>
>>
> What operating system are you using. For most Linux distributions this
> script is included with the operating system. FOr other operating
> systems you can roll your own.
>
> Generally it is very simple. Here is an example I have used for many
> years with Solaris. I'm sure it could be easily adapted to others.
>
> #       dhcpd control
>
> PIDDIR=/var/run
>
> if [ -f $PIDDIR/dhcpd.pid ]; then
>        pid=`cat $PIDDIR/dhcpd.pid`
> fi
>
> case $1 in
> start)
>        if [ -x /usr/local/sbin/dhcpd ]; then
>                if [ -n "$pid" ]; then
>                        if ps -p $pid | grep dhcpd >/dev/null; then
>                                echo DHCPD already running
>                        else
>                                rm -f $PIDDIR/dhcpd.pid
>                                /usr/local/sbin/dhcpd
>                                sleep 1
>                        fi
>                else
>                        rm -f $PIDDIR/dhcpd.pid
>                        /usr/local/sbin/dhcpd
>                        sleep 1
>                fi
>        fi
>        ;;
> stop)
>        if [ "${pid}" != "" ]; then
>                /usr/bin/kill ${pid}
>        fi
>        rm -f $PIDDIR/dhcpd.pid
>        ;;
> *)
>        echo "usage: /etc/init.d/dhcpd {start|stop}"
>        ;;
> esac
>
> Note to anyone using Solaris 10. I have SMF scripts and xml to place
> dhcpd under Service Management Facility control. SMF is init scripts on
> steroids :)
>
> regards,
> -glenn
>
> 


More information about the dhcp-users mailing list