On Thu, Mar 29, 2001 at 04:03:13PM -0800, Rick Rezinas wrote: > 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.
check the script /etc/rcS.d/rc and see... for i in /etc/rc$runlevel.d/K[0-9][0-9]* # ...kill stuff for i in /etc/rc$runlevel.d/S* # ...start stuff so the K* kill scripts are executed on ENTRY to a runlevel, not on exit. > 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] > > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- does a brain cell think? [EMAIL PROTECTED] http://sourceforge.net/projects/newbiedoc -- we need your brain! http://www.dontUthink.com/ -- your brain needs us!