Package: sysvinit Version: 2.86.ds1-61 Severity: normal
The shutdown man page says that the -P option will set the INIT_HALT variable to POWEROFF. However, echo statements placed at the top of do_stop() in /etc/init.d/halt reveal that this variable is set to POWERDOWN. Assuming nothing modified the value of INIT_HALT inbetween, this suggests that either shutdown or its man page should be fixed. Further down in /etc/init.d/halt the following script if [ "$INIT_HALT" = "POWEROFF" ] && [ -x /etc/init.d/ups-monitor ] then /etc/init.d/ups-monitor poweroff fi tests for POWEROFF only. So, if you configured your ups monitoring software to shutdown on a power outage with "shutdown -hP" your UPS will never power off. It seems to me that either shutdown should be fixed to set INIT_HALT to POWEROFF, or this script should test for both, or the use of -hP as a mechanism to deliberately leave your UPS on after a UPS induced shutdown should be documented somewhere. -- System Information: Debian Release: 5.0.5 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages sysvinit depends on: ii initscripts 2.86.ds1-61 Scripts for initializing and shutt ii libc6 2.7-18lenny4 GNU C Library: Shared libraries ii libselinux1 2.0.65-5 SELinux shared libraries ii libsepol1 2.0.30-2 Security Enhanced Linux policy lib ii sysv-rc 2.86.ds1-61 System-V-like runlevel change mech ii sysvinit-utils 2.86.ds1-61 System-V-like utilities sysvinit recommends no packages. sysvinit suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org