[plug] chkconfig + dhcpd

David Griffiths griffith at environ.wa.gov.au
Tue Sep 5 11:19:37 WST 2000


>List,
>
>Just downloaded the latest(?) dhcp tarball from isc.org. It compiled and
>installed OK. I am having a few problems getting chkconfig to add the
>daemon. If I use chkconfig --add /usr/sbin/dhcpd it reports error
>reading information on service (which I would kind of expect since this
>is the binary) but I get the same message when I point chkconfig to the
>directory I used for the untar etc.
>
>I can not seem to work out where to locate the information on service
>for this. Any pointers please?
>
Mike,

I'm not sure that the --add is meant to be used in this way.

I think you may need to create the script for dhcpd by hand initially (eg
copy one of the existing scripts and modify that or locate one from a .rpm
or .deb).

chkconfig looks at the "# chkconfig " line in the init script which
specifies default run levels to start up on and shut down on and also
numbers indicating the order in which to do this.

Take care to get the starting order number in particular about right. Too
early and it might fail, eg before networking is started.

Once the init script is created then I suspect that the --add command will
do it's bit.

Or, you can just create the links to the appropriate run level dirs by hand,

or use the chkconfig command to do it for you, eg
    chkconfig --level 345 dhcpd on

cheers,

Dave.



 ========================================================================

  David Griffiths                             griffith at environ.wa.gov.au

  Air Quality Management Branch
  Department of Environmental Protection          Phone:   61 8 9222 7151

  Westralia Square                                Fax  :   61 8 9321 5184
  141 St Georges Tce
  Perth 6000
  Western Australia
 ========================================================================





More information about the plug mailing list