just about that ;) when entering a runlevel, the daemon basically goes through each file in /etc/rcx.d that starts with S and runs it like this: S90startstuff start note the start argument. Then when leaving it does the same thing with the K's saying stop.
They are run in numerical order, so dependencies aren't a problem if they exist. Also, it is legal for two scripts to have the same number. When I add them, I usually just give them S99. Because of that you'll see that most/all of the files in /etc/rcx.d are symlinks to scripts in /etc/init.d/ rick On Thu, 29 Mar 2001, Alan Chen wrote: > Ahh, update-rc.d was what I was thinking of when I typed > update-alternatives. What the sequence number do? > > --- Rich Puhek <[EMAIL PROTECTED]> wrote: > > Also look at the update-rc.d command (see man update-rc.d for > > details). > > That will allow you to do things like: > > > > update-rc.d postres start 3 (start postres in runlevel 3) > > update-rc.d postres stop 50 6 (stop postres at sequence 50 in > > runlevel > > 6) > > > > --Rich > > > > > > Alan Chen wrote: > > > > > > Just as an excercise to my own sys admin knowledge, I'll summarize > > my > > > general knowledge and just ask if anyone has suggestions or > > differences > > > in my understanding. > > > > > > Daemons (or services) can be manually manipulated in debian using > > > /etc/init.d/<daemon> with the command start, stop, restart, etc.. > > > > > > This will only change what is currently running. If you reboot, > > > whatever was configured for your runlevel will be started again. > > > rcS.d/ is stuff started for every runlevel > > > rcn.d/ lists runlevel specific daemons that are started at boot > > > > > > update-alternatives (or was it alternatives-update) is a admin tool > > for > > > adding, removing daemons from various runlevels. > > > > > > To remove a daemon from starting at a given runlevel, i generally > > just > > > delete the entry in the /etc/rcn.d directory. Are there any > > reasons > > > for not doing that? I wish the update-alternatives would accept > > syntax > > > like "update-alternatives +3 postres" to add postgres to runlevel > > 3. > > > Maybe it does, it's been a while since I last used it. > > > > > > Any other general notes? > > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/?.refer=text > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] >