From: Joe C. <jo...@sw...> - 2002-08-28 01:40:38
|
Jamie Cameron wrote: > jam...@te... wrote: > >> - Did you really mean to have kill and start scripts in the same >> run >> level? I thought the >> kill scripts belonged in the run levels where you don't want >> webmin to run, such >> as 0, 1, and 6. > > > > To be honest, I'm not really sure about that! Aren't the K scripts for a > runlevel > run when leaving it? So if you booted to runlevel 5, S99webmin would be > run at boot time.. > When shutting down (and so leaving runlevel 5) K10webmin would be run. > > Correct me if I am wrong in my understanding of how init scripts work on > shutdown though. My understanding was the same as James. My impression was that the kill scripts run as you switch into a runlevel. Thus rc6.d contains a ton of K scripts and only two S scripts (S00killall and S01reboot) and rc0.d is the same except S01halt replaces S01reboot. telinit <somelevel> should prove it quickly...I'm not at a machine I can do a runlevel change on at the moment, but I reckon James is right. This is one of those simple things that I rarely dig into though. It just works, so why bother understanding it? ;-) Anyway, in my RPMs I've gone under the assumption that you start it in runlevels where you want it to run and kill it in levels where you don't (thus network gets killed in level 1..actually everything gets killed there except S00single). I may be wrong, but it seems to work. Then again, so does Webmin! ;-) -- Joe Cooper <jo...@sw...> Web caching appliances and support. http://www.swelltech.com |