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?