[Nut-upsdev] Asking hard questions about the NUT architecture

Eric S. Raymond esr at thyrsus.com
Wed May 30 09:52:46 UTC 2007


Carlos Rodrigues <carlos.efr at mail.telepac.pt>:
> On 5/30/07, Eric S. Raymond <esr at thyrsus.com> wrote:
> > > Every application running as a daemon has a way to shut itself down.
> > > If it does that by handling SIGTERM or some other mechanism is
> > > completely irrelevant. What matters is that doing
> > > "/etc/init.d/someservice stop" does the trick, and a UPS triggered
> > > shutdown is going to do just that.
> >
> > *blink*  *blink*
> >
> > And a SIGPWR shutdown *isn't* going to do that?
> 
> For many apps, no.

How do you figure?  Says right there on the telinit(8) man page that
SIGPWR sent to it is supposed to call the stop scripts.  That at least
covers the "/etc/init.d/someservice" case you were talking about.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>



More information about the Nut-upsdev mailing list