[lug] init script that won't run stop() under F11

Michael J. Hammel mjhammel at graphics-muse.org
Tue Sep 29 18:10:15 MDT 2009


On Tue, 2009-09-29 at 18:00 -0600, Zan Lynx wrote:
> RedHat init looks into /var/lock/subsys/* to see if it needs to run 
> start/kill scripts during initlevel changes.
> 
> The start should create a file in there with the right name and stop 
> should remove it. Look at the rest of the scripts to see, but I think it 
> is just the name of the init script.

Yep - that was it.  Just touch the script name under /var/lock/subsys
and then remove it on stop. Thanks!

Is that just a RH thing or do other distros rely on that too?  Do other
distros even have a /var/lock/subsys?  I want to make this script
functional on the more popular distros.

-- 
Michael J. Hammel                                    Principal Software Engineer
mjhammel at graphics-muse.org                           http://graphics-muse.org
------------------------------------------------------------------------------
"In the republic of mediocrity, genius is dangerous."
Robert S.  Ingersoll, American lawyer and politician (1833-1899).




More information about the LUG mailing list