Missing /etc/init.d/dhcpd from ISC DHCPD
The good: I got tired of my Belkin router switching around IP addresses. So I downloaded DHCPD (Dynamic Host Configuration Protocol Daemon) from the Internet Systems Consortium, http://www.isc.org/sw/dhcp/. It built without a hitch (./configure; make; sudo make install) and runs well. I can tie "static" IPs to our 5 MAC addresses. BTW, the machine is on FC2, so yum dried up.
The ugly: The usual setup has a script /etc/init.d/dhcpd, symlinked into the appropriate runlevels. This makes dhcpd start at boot time, and simplifies administration. That part wasn't set up by "make install". (I have to start (/usr/sbin/)dhcpd manually after a reboot.) I looked through the directory tree, and see it only in one place: contrib/dhcp.spec looks like a RPM specification, and it supports only Solaris. I could try contrib/solaris.init and maybe adapt it. But I wonder how everyone else does this. Searched LQ and Google, no luck. Hoping Networking is the right category -- DHCP(D) isn't explicitly listed in the guidelines. Thanks for any advice or other insights! /Quigi |
Check this site for scripts: http://smarden.org/runit/runscripts.html
|
Hi contusion, thanks for the link. While I like daemontools, I was looking for the /etc/init.d style script, which is the usual way to control services under Fedora Core, Ubuntu, Solaris, and probably a few others.
E.g., dhcp-3.1.0/contrib/solaris.init looks like this (and would get installed as /etc/init.d/dhcpd): Code:
#!/bin/sh |
Init Script, SysV for ISC DHCPD 4
Little fooling around and this is what I have. I thought it was interesting the distro didn't come with one. Improvements welcome.
Code:
#!/bin/sh |
Thank you very much, Wassinsky!
I put i in place, 'status' and 'stop' worked flawlessly, 'start' will need some tweaking. Yes, I was surprised too that ISC's tarball didn't supply the file. I assume every distro (e.g., ubuntu) adds one. |
All times are GMT -5. The time now is 07:22 PM. |