LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 03-30-2009, 03:46 AM   #1
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Rep: Reputation: 15
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!
 
Old 03-30-2009, 04:31 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,925

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
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
 
Old 03-30-2009, 04:34 AM   #3
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
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.
 
Old 03-30-2009, 04:44 AM   #4
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Original Poster
Rep: Reputation: 15
I'm sorry for not mentioning my distro. I'm using Fedora 8.
Thanks for your help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dhcpd.conf file - Best practices? custangro Linux - Server 2 08-25-2008 01:58 PM
creation of dhcpd.conf file gannurajput Linux - Networking 2 01-03-2008 02:45 PM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
can't file dhcpd.conf vito_huang Linux - Networking 6 01-28-2005 07:04 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM


All times are GMT -5. The time now is 02:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration