chkconfig for debian? 1

Posted by paul Mon, 12 Jul 2004 10:37:29 GMT

I recently switched to debian for my linux box at home. I have previously been using redhat (various versions and variants). Most of the boxes I work on and manage are redhat based in some way so I had become familiar with the way it is laid out. So, I recently installed ddclient to update my dynamic dns records at dyndns as I am on DSL at home with a dynamic IP. In the installation instructions one is told to use chkconfig to ‘turn on’ ddclient as a service. The problem is that (as far as I am aware) chkconfig does not exist on debian. Hmm. So a bit of searching led me to the debian policy documtent, which explains the debian equivalent of chkconfig, i.e. update-rc.d . That doesn’t roll off the tongue as easily as chkconfig but it does the job. Specifically check out this page<-nextpage-> for info on how to use it.

In my case I just ran update-rc.d ddclient defaults (after copying the file ddclient from my distribution folder to /etc/init.d ) and it created symlinks from /etc/init.d/ddclient to the various init folders. I suppose I should really have choosen just the runlevels I needed but it was early and I hadn’t quite woken up …

hth.

Comments

Leave a response

  1. pete 21 days later:
    Thanks for the help. I was looking for this info, just started with Debian.