Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Dec 2000 17:32:45 +0900
From:      Jun Kuriyama <kuriyama@imgsrc.co.jp>
To:        jseger@FreeBSD.org
Cc:        Ports Team <ports@FreeBSD.org>
Subject:   net/isc-dhcp2 startup script
Message-ID:  <7mu28geimq.wl@waterblue.imgsrc.co.jp>

next in thread | raw e-mail | index | archive | help
--Multipart_Thu_Dec__7_17:32:45_2000-1
Content-Type: text/plain; charset=US-ASCII


Hi Justin,

Is it possible to include startup script for isc-dhcp2 as a sample
file like this?

# Users must edit ifaces line to fit their configuration.


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project

--Multipart_Thu_Dec__7_17:32:45_2000-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="dhcpd.sh"
Content-Transfer-Encoding: 7bit

#!/bin/sh
#
# $FreeBSD$
#
ifaces="fxp0"

if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
	echo "$0: Cannot determine the PREFIX" >&2
	exit 1
fi

case "$1" in
start)
	${PREFIX}/sbin/dhcpd $ifaces
	;;
stop)
	kill `cat /var/run/dhcpd.pid`
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	;;
esac

exit 0

--Multipart_Thu_Dec__7_17:32:45_2000-1--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7mu28geimq.wl>