RE: [CentOS] rc script not running on shutdown

Fri Jan 6 14:44:25 UTC 2006
Bowie Bailey <Bowie_Bailey at BUC.com>

Mark Belanger wrote:
> Maciej Zenczykowski wrote:
> > And are you creating the /var/lock/subsys/chnghst
> > file when the subsystem starts up?
> 
> Is that required to make scripts run on shutdown?

Yes.  I ran into this problem myself not too long ago.  Your script must
create a lockfile on startup if you want it to run during shutdown.

-- 
Bowie