DSAdmin (Debian Startup Admin)

sboss on 2002-03-29T16:35:25

I am working on a little utility that will have people enable/disable things that startup/shutdown on their Debian machines. Why debian? Simple, it is what I use.

I do not know about you, but sometimes I want to disable a given service (like samba or nfs) from starting at boot time. You have to go into each of the /etc/rc?.d directories and s/S##/s##/ for each of the services. Then later do vice versa for getting them started again. Also, so services have more than one startup/shutdown file. And you have to remember that too. For experienced UN*X administrators, it is not a big deal (unless you are at 38th straight hour at work today). So I am wiritng this tool that will help make it easy to enable/disable the init scripts.

How much have I gotten done? Not much. Some designs in my head, some code that checks to see which scripts are in which rc?.d directory and are then enabled/disables. Needs much more work.

I will problably change the name of this. I just do not have a name yet. All suggestions welcome. Email me the suggestions at "scott at sboss dot net" (you can read the address... :> ).


DSAdmin

Simon on 2002-03-29T17:06:49

#!/usr/bin/perl
system("update-rc.d @ARGV");

Re:DSAdmin

MetaDatum on 2002-04-19T15:43:26

correct -- see the debian specific update-rc.d script -- its what the debian packages use to enable/disable init scripts.

chkconfig

koschei on 2002-03-31T15:17:34

Isn't that what chkconfig(8) is for? Or is that just a RH specific program?