LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration