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

Fabien C. 9lefq1taz2n9shj at jetable.org
Sun Jul 21 11:23:28 UTC 2013


Package: initscripts
Version: 2.88dsf-41
Severity: normal

Dear Maintainer,

please launch "/etc/init.d/ups-monitor poweroff" everytime /etc/init.d/halt is 
called, not only when INIT_HALT=POWEROFF. 

This is necessary because the user can customize the nut/upsmon shutdown 
command, which default to "shutdown -h +0", to something like "shutdown -Hh +0" 
(see /etc/nut/upsmon.conf). This could be done so that the machine does 
poweroff the disks and stop the system, but does *not* cut the power off, 
waiting for the UPS to do so. This is nice when your BIOS is configured to 
restore the last power state before the power went down: "On/Off state: Last 
state". 

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. 

Thank you. 


-- System Information:
Debian Release: 7.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initscripts depends on:
ii  coreutils       8.13-3.5
ii  debianutils     4.3.2
ii  libc6           2.13-38
ii  lsb-base        4.1+Debian8+deb7u1
ii  mount           2.20.1-5.3
ii  sysv-rc         2.88dsf-41
ii  sysvinit-utils  2.88dsf-41

Versions of packages initscripts recommends:
ii  e2fsprogs  1.42.5-1.1
pn  psmisc     <none>

initscripts suggests no packages.

-- no debconf information



More information about the Pkg-sysvinit-devel mailing list