LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   set dhcpd to start as service (https://www.linuxquestions.org/questions/linux-newbie-8/set-dhcpd-to-start-as-service-747451/)

Allie 08-13-2009 11:27 PM

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

chrism01 08-14-2009 12:04 AM

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

Allie 08-14-2009 12:11 AM

Quote:

Originally Posted by chrism01 (Post 3642784)
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

chrism01 08-14-2009 12:14 AM

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.

Allie 08-14-2009 01:22 AM

Quote:

Originally Posted by chrism01 (Post 3642795)
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.

linuxlover.chaitanya 08-14-2009 02:12 AM

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.


All times are GMT -5. The time now is 01:00 AM.