LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Forcing /var/lock/subsys file if init script didn't start a given service?

Posted 01-30-2014 at 03:46 PM by MensaWater

Today I was creating a new init script on RHEL6. This isn't something I've had to do often.

I ran into the common problem that although the new script successfully started and stopped the service from command line and also started it on reboot it did NOT stop it before the server went down when the shutdown was done.

The reason for that is because on RHEL they run a killall script that checks for files in /var/lock/subsys and only run the "stop" portion...
LQ Guru
Posted in Uncategorized
Views 2008 Comments 0 MensaWater is offline

  



All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration