Shutdown script not being run

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



Barry Brimer <mailto:barry.brimer@xxxxxxxxxxx> wrote:
> Quoting Bowie Bailey <Bowie_Bailey@xxxxxxx>:
> 
> > I've got an odd problem.  My server will not shutdown normally
> > because the AoE driver is not being shut down properly.  While
> > investigating the problem, I found that the aoe script is
> > apparently not being called for shutdown.  I have been able to
> > duplicate this with a brand new test script.
> 
> IIRC, you need to have your init script place a lock file named the
> service name in /var/lock/subsys for the stop to execute.

I found that by looking through the 'rc' script not long after I posted.
I finally determined that the script was properly creating and deleting
the lock file, it was just named wrong.

The lock file must be named either 'subsys' or 'subsys.init'.  This one
was trying to use 'subsys-init'.  Changed the dash to a period and the
problem went away.

Thanks for the help!

-- 
Bowie

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux