Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Linux shutdown trigger of rc6.d linked scripts.

Avatar of fullermetric
fullermetric asked on
LinuxLinux Distributions
18 Comments1 Solution1154 ViewsLast Modified:
I suspect and wonder why it 'seems' my script is not run during a shutdown.
Have script XXXX in /etc/init.d.
Use chkconfig: 2345 90 01 ...to create K01XXXX in rc6.d
Use a 'wall' command inside XXXX stop() to identify if section is triggered after system shutdown
Use a DB shutdown request command inside stop() section of my XXXX script.
Use shutdown syntax ....    shutdown -r -t10 +1   ...or unix version shutdown -g0 -y -i6  

In both cases ...the wall broadcast is not displayed on the terminal and the DB log indicates that the DB comes down with a kill request  (suspect for S99killall in rc6.d) rather than a clean shutdown request as initiated inside the XXXX script.    If I run the XXXX script manually from /etc/init.d, the wall broadcast message is displayed and the DB comes down with a shutdown request.

Question ... is there a way to know if my K01XXXX is actually run via rc6.d on a shutdown.
What happens with init.d, rc0.d, rc6.d  during shutdown and restart requests?
ASKER CERTIFIED SOLUTION
Avatar of DonConsolio
DonConsolioFlag of Austria image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 18 Comments.
See Answers