RE: Starting DHCPD
Danny: Create a script (/usr/local/etc/rc.d/dhcpd.sh something like this: --script starts below--- case $1 in start) echo Starting DHCP Server /usr/sbin/dhcpd ;; stop) echo Stopping DHCP Server killall dhcpd ;; *) echo Usage: $0 {start|stop} exit 1 esac exit 0 --script ends above--- Make sure it is executable by root, ends in .sh and lives in /usr/local/etc/rc.d Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland Phone: +353 1 417 0150 Fax:+353 1 478 5544 Email: [EMAIL PROTECTED] Web:www.wbtsystems.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Danny Horne Sent: 24 January 2003 10:11 To: [EMAIL PROTECTED] Subject: Starting DHCPD Hi all, I'm making changes to my network which will require using my own DHCP server. It's all set up ready to go, but I can't find any way of getting it to start on boot up. There's nothing that I can find in /etc/defaults/rc.conf or /etc/rc.conf, no startup scripts in /usr/local/etc/rc.d I've used this DHCP server before (have recently been using a different one on the network) so I know it can work, but just can't find any way of starting it automatically. Thanks for all replies To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Starting DHCPD
Danny: Create a script (/usr/local/etc/rc.d/dhcpd.sh something like this: Thanks Barry, I wonder though, if this is the default way of starting it, where did my original script go 8-( To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Starting DHCPD
On Fri, Jan 24, 2003 at 10:42:26AM -, Danny Horne wrote: Danny: Create a script (/usr/local/etc/rc.d/dhcpd.sh something like this: Thanks Barry, I wonder though, if this is the default way of starting it, where did my original script go 8-( If you're using the net/isc-dhcp3 port, then you certainly should have some sample startup files installed. These files are add-ons provided by the port. You can find them in /usr/ports/net/isc-dhcp3/files -- just copy isc-dhcpd.sh.sample to /usr/local/etc/rc.d/isc-dhcpd.sh and you should be good to go. Cheers Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Starting DHCPD
On Fri, 24 Jan 2003 10:10:41 - (GMT), Danny Horne wrote: Hi all, I'm making changes to my network which will require using my own DHCP server. It's all set up ready to go, but I can't find any way of getting it to start on boot up. There's nothing that I can find in /etc/defaults/rc.conf or /etc/rc.conf, no startup scripts in /usr/local/etc/rc.d I've used this DHCP server before (have recently been using a different one on the network) so I know it can work, but just can't find any way of starting it automatically. if you installed it via the ports, it should install: -r-xr-xr-x 1 root wheel 1662 Apr 14 2002 isc-dhcpd.sh.sample look for that, if not, i can email you mine --- doug reynolds | the maverick | [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message