LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-13-2009, 11:27 PM   #1
Allie
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Rep: Reputation: 0
set dhcpd to start as service


Hello everyone, I managed to install and configure ISC dhcpd. Everything works great but how do I set dhcpd to start as a service everytime I reboot the computer? Currently, I have the /usr/local/sbin/dhcpd set in rc.local and it works fine but how come I can't get it to start using the chkconfig --add dhcpd command or using sym links in the rc3-5.d? Currently I have to stop the dhcpd process by doing the kill -HUP and then start it again by issuing the /usr/local/sbin/dhcpd. I'm using CentOS 5.3
 
Old 08-14-2009, 12:04 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,239

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
How did you install it? If you used the built-in yum tool (or GUI equiv), then you should be able to use the GUI SystemAdmin->Services or chkconfig from the cmd line.
See also the 'service' cmd:
http://www.linuxtopia.org/online_boo...ng-server.html
 
Old 08-14-2009, 12:11 AM   #3
Allie
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
How did you install it? If you used the built-in yum tool (or GUI equiv), then you should be able to use the GUI SystemAdmin->Services or chkconfig from the cmd line.
See also the 'service' cmd:
http://www.linuxtopia.org/online_boo...ng-server.html
I downloaded the source from ISC then I compiled it and installed it using the commands ./configure, make, make install
 
Old 08-14-2009, 12:14 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,239

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
Well that would be it then. Unless you have extremely odd requirements, always use the built-in tools to download/install sw, which will get it from trusted repos eg in your case the official CENTOS repos.
Personally, I'd remove your handbuilt one and use the tools.
 
Old 08-14-2009, 01:22 AM   #5
Allie
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Well that would be it then. Unless you have extremely odd requirements, always use the built-in tools to download/install sw, which will get it from trusted repos eg in your case the official CENTOS repos.
Personally, I'd remove your handbuilt one and use the tools.
Oh, I see. I thought it would be the same thing. Since I'm a newbie, I was trying to go through the motion of compiling and learning from it. No matter, this is just a test virtual machine so I'll take your suggestion and try that route. Perhaps this is probably the same problem I'm having with my BIND install as it didn't put the named.conf in /etc directory and it looks like I have to manually piece every thing together. So from now on, it seem like it's always best to get the RPMs. Thank you.
 
Old 08-14-2009, 02:12 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
Do not get the RPMs unless the package is not available in the yum repositories. Use yum to install the packages. If you do not find them in repositories, then find out the repos that may contain them. If you still do not find anything then find RPMs. And if still no luck then compile from source.
YUM is the best solution.
 
  


Reply

Tags
dhcpd, service


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
Set a Perl script as an unix service (start with system) onlymed Linux - Newbie 2 04-01-2009 02:59 PM
dhcpd service problem divyashree Linux - Newbie 6 03-26-2009 12:18 PM
how to set a service to start any time the system reboot phongly2000 Linux - Newbie 3 01-16-2009 11:48 AM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
How to make TCP server a daemon / service much like a dhcpd service? rajat Linux - Networking 1 05-22-2007 01:29 AM


All times are GMT -5. The time now is 10:35 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