The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 how to start dhcpd at boot time?
Author: meaculpa 
Date:   16-05-00 06:01

how to start dhcpd at boot time?

Reply To This Message
 RE: how to start dhcpd at boot time?
Author: Joel ( nevyn ) 
Date:   16-05-00 10:49

I prefer to start stuff at boot-time from the dir /etc/rc.d.
In /etc/rc.conf i add the following line:
That makes everything in /etc/rc.d/ ending with a .sh and +x ( chmod 755 ) execute in alphabetic order at startup.

/ Nevyn

Reply To This Message
 RE: how to start dhcpd at boot time?
Author: Dan Langille 
Date:   16-05-00 12:21

The generally accepted place for such scripts is /usr/local/etc/rc.d/

If you use that directory, you don't have to define local_startup as that is already defined for you in /etc/defaults/rc.conf

The more you deviate your system from the accepted defaults, the more difficult it is for someone else to help you with it.

Reply To This Message
 RE: how to start dhcpd at boot time?
Author: Dan Larsson 
Date:   18-05-00 10:23

This does not as much discuss where to put the startup script as how.
( FYI, I've got my dhcpd script in /usr/local/etc/rc.d)

This is my startup script
[ -x /usr/local/sbin/dhcpd ] && /usr/local/sbin/dhcpd -q XXX && echo -n ' dhcpd'

Where XXX is the interfaces to listen on seperated by a space. This parameter
can be ommited if dhcpd has configuration parameters for all installed interfaces.

See these man pages for more information:
dhcpd(8) - Dynamic Host Configuration Protocol Server
dhcpd.conf(5) - dhcpd configuration file

Hope this helps.

Dan Larsson

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum