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

Re: initscript "feature" questions



On Fri, 2007-10-26 at 14:34 -0400, Bill Nottingham wrote:
> Jon Masters (jcm redhat com) said: 
> > > We only shut things down that have been started successfully (have a lock file.)
> > 
> > Right. But what if I want to run something on shutdown that's unrelated
> > to a daemon? And I want to do this from a package, so without manually
> > modifying the local rc config?
> 
> Create a SXX service that runs in runlevel 0/6, or add a /sbin/halt.local.

Right. I considered that, but this is not "starting" something, it's
shutting something down. In the end, I wound up having a useless start
action that touches a lockfile on startup, just so I can have a "stop"
action to take it down again :-)

Nothing personal, I know you own that package, but I think the logic
there is not ideal ;-)

Jon.



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