How to re-invoke dhcpd after changes were made to dhcpd.conf file.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.