[Pkg-sysvinit-devel] Bug#717488: Bug#717488: Please always launch /etc/init.d/ups-monitor when halting the system

Henrique de Moraes Holschuh hmh at debian.org
Fri Jul 26 01:06:10 UTC 2013


On Sun, 21 Jul 2013, Roger Leigh wrote:
> On Sun, Jul 21, 2013 at 01:23:28PM +0200, Fabien C. wrote:
> > please launch "/etc/init.d/ups-monitor poweroff" everytime /etc/init.d/halt is 
> > called, not only when INIT_HALT=POWEROFF. 
> > 
> > The current script forbids that behavior because if INIT_HALT is not equal to 
> > POWEROFF, which is "unfortunately" the case with "shutdown -Hh", then 
> > /etc/init.d/ups-monitor is *never* called. 
> 
> While this change sounds reasonable, I'm not personally aware of the
> reason for the current logic.  Is changing this going to break
> anything?  Why is it currently the way it is?

It is basically not a good idea at all to cut power instead of issuing a
hardware shutdown command.  Lots of stuff on server boxes get highly pissed
off if you just cut power.

I would have to put some effort to recall all the trouble we had in the past
to access whether we can support this proposed change, though.

What is important is that we must not break the sane scenario, where you
have the box properly configured to always power up on power restore, and
the UPS configured to always cycle the load once the load (i.e. us) signals
that it is past the point of no return (i.e. that it will require a power
cycle to restart -- in Debian, that pretty much means as soon as we switch
to runlevel 0).

Also, shutdown -H must NOT issue a UPS power off command [by default], it is
documented to not do it.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



More information about the Pkg-sysvinit-devel mailing list