Your message dated Sun, 28 Oct 2018 16:20:36 -0300 with message-id <[email protected]> and subject line Fixed upstream has caused the Debian Bug report #590895, regarding sysvinit: shutdown -hP sets INIT_HALT to POWERDOWN not 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.) -- 590895: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590895 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---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
--- End Message ---
--- Begin Message ---This bug has been address upstream. The shutdown command now sets INIT_HALT "POWEROFF" as defined in the manual page. The fix will appear in sysvinit 2.92. - Jesse
--- End Message ---

