[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: /etc/rc*.d/K05st.exmple not executed when the system is shut down



> -----Original Message-----
> From: redhat-sysadmin-list-bounces redhat com [mailto:redhat-sysadmin-list-bounces redhat com] On Behalf Of Zhou, Jingchen
> Sent: Wednesday, June 15, 2011 2:31 PM
> To: redhat-sysadmin-list redhat com
> Subject: RE: /etc/rc*.d/K05st.exmple not executed when the system is shut down
>
> Thanks again. Yes, I see /etc/init.d/killall. My question is that if the daemon shutdown is all handled by killall, why do we install K* in /etc/rc*.d and what is /etc/rc*.d/K* for?


I think /etc/rc.d/rc is still used for effecting the runlevel changes
(at least on my RHEL 5.5 box). Reading through that shows (on line 45)
how it first processes all the K scripts for the new runlevel, and
then processes the S scripts. So, shutting down would access
/etc/rc.d/r0.d/ for the K* files, then the S* files.

/etc/init.d/killall is really just there as a sanity check, I think.

Verify your shutdown script matches the checks performed in
/etc/rc.d/rc's KILL area, and you should be good to go for proper K
script execution.

Happy Lunar Eclipse day,

Paul


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]