LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to re-invoke dhcpd after changes were made to dhcpd.conf file. (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-re-invoke-dhcpd-after-changes-were-made-to-dhcpd-conf-file-715427/)

Azazwa 03-30-2009 03:46 AM

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

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/dhcpd.pid, 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.

Thanks!

bathory 03-30-2009 04:31 AM

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

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 07:26 PM.