-   Linux - Newbie (
-   -   How to re-invoke dhcpd after changes were made to dhcpd.conf file. (

Azazwa 03-30-2009 03:46 AM

How to re-invoke dhcpd after changes were made to dhcpd.conf file.

I have to make changes to the dhcpd.conf file and I read the following in the man pages:

Whenever changes are made to the dhcpd.conf file, dhcpd must be
restarted. To restart dhcpd, send a SIGTERM (signal 15) to the pro-
cess ID contained in /var/run/, and then re-invoke dhcpd.

Could someone just please spell it out to me how I should send a SIGTERM and re-invoke dhcpd ? I guess I could do it from a normal terminal, but I'm really clueless.


bathory 03-30-2009 04:31 AM

Since you didn't say what distro you're using you can try any of the following

service dhcpd restart
/etc/init.d/dhcpd restart
killall -HUP dhcpd

blackhole54 03-30-2009 04:34 AM

The best way to do this depends on the distro you are running. You will almost certainly use a terminal (or gnome-terminal, konsole, etc). And you will need to be root or, for certain distro's like Ubuntu, use sudo. For many distros you can forget about SIGTERM and just use that distros standard mechanism for restarting a service. (For that you will need to know the name of the service which you can frequently find in /etc/rc$runlevel.d where $runlevel is the runlevel you boot into.)

A couple of examples:

On my old RH systems I can:

service dhcpd restart

On Ubuntu you can probably (I am guessing at the name they use for their service, so the command may need some adjustment):

sudo invoke-rc.d dhcp3-server restart

If you need more specific help, let us know what distro you are using.

Azazwa 03-30-2009 04:44 AM

I'm sorry for not mentioning my distro. I'm using Fedora 8.
Thanks for your help!

All times are GMT -5. The time now is 12:29 PM.