UnixTips.net

* use my tips at your own risk !!

* use my tips at your own risk !!

Categories

  • Other (3)
  • Scripting (10)
  • Unix (70)
  • Wordpress (2)

Powered by Genesis

Linux Shutdown

The reason RedHat does not kick off your K* rc shutdown scripts is because RedHat checks for a lock file for your script in /var/lock/subsys/

To fix this, simply add a line to your ‘start’ section, something like this:
Code:

touch /var/lock/subsys/< scriptname >

Scripts under rc0.d and rc6.d do not seem to run during shutdown.reboot.