Your message dated Sat, 21 Apr 2012 00:52:18 +0100
with message-id <[email protected]>
and subject line Close old and unfixable sysvinit bugs
has caused the Debian Bug report #157354,
regarding Please support halt without poweroff
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
157354: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=157354
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: initscripts
Version: 2.86.ds1-1
Severity: normal
The script '/etc/init.d/halt' gives the '-p' option to the halt command
if the user demanded a power-off. This results in an ACPI-power-off
command which physically turns off the machine. This is fine and
convenient in almost all cases.
HOWEVER:
If using a UPS to power the machine, the UPS control script usually
issues a command to the UPS to cut off the power from the machine after
the shutdown procedure has completed, in the case of a preceding
powerfail event. (The batteries have run low, thus the UPS monitor shut
down the machine.)
If the BIOS of the machine has been set up correctly ("Always On after
Power Loss"), the machine will automatically boot up again as soon as
the main power comes back.
This however, does not happen if the machine had been properly turned
off before via the according ACPI call.
Therefore, the halt command must not issue a power off request to the
mainboard in the case of a power failure when the UPS will cut the power
anyway, as to ensure an automatic boot-up as soon as the power will come
back.
SOLUTION:
A clean solution probably demands for a rework of the halt script, since
the '-p' option has to be omitted in the case of a previous powerfail
event from the UPS. Unfortunately the different UPS tools place the
information about this (usually a file in '/etc/nologin' fashion) in
different places, eg. 'apcupsd' uses /var/spool/apcupsd/powerfail' by
default.
The halt script would have to check for this somehow. Probably a
wrapper script of some kind would have to be required from all packages
that supply UPS monitoring facilities.
Obviously the above case is only interesting if the script
'/etc/init.d/ups-monitor' is present, since this (usually a link) is
created if any UPS monitoring package is installed in the Debian way.
Maybe one could extend this script with a query function to get the
powerfail information into the halt script.
This issue can be a major tripwire for unexpecting system administrators...
Cheers,
Frank
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages initscripts depends on:
ii coreutils 5.2.1-2 The GNU core utilities
ii dpkg 1.10.26 Package maintenance system for Deb
ii e2fsprogs 1.35-6 The EXT2 file system utilities and
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii mount 2.12-10 Tools for mounting and manipulatin
ii util-linux 2.12-10 Miscellaneous system utilities
-- no debconf information
--- End Message ---
--- Begin Message ---
This bug is being closed as part of a cleanup of the old bug
reports in the sysvinit package, in an attempt to make it easier
to address the bug reports which actually are fixable. Some
reasons:
- Not a bug and/or it's a patch which will not be applied
- It will not be fixed, ever for various reasons
- Problem is not fixable in sysvinit or not our responsibility
- A better solution has become available in the interim
- No activity or submitter response in over a decade or more
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
--- End Message ---
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel