[Pkg-sysvinit-devel] Bug#717531: /sbin/shutdown: shutdown -P sets INIT_HALT to POWERDOWN instead of POWEROFF

Laurent Bigonville bigon at debian.org
Sun Jul 21 23:49:23 UTC 2013


Package: sysvinit
Version: 2.88dsf-43
Severity: normal
File: /sbin/shutdown

Hi,

According to the shutdown(8), calling shutdown with the -P argument
should set the INIT_HALT variable to POWEROFF.

For some reasons, this is not the case and INIT_HALT is set to POWEROFF.


HALT OR POWEROFF
       The  -H option just sets the init environment variable INIT_HALT to HALT, and the -P option just sets that variable to POWEROFF. The shutdown script that calls halt(8) as the last thing in the shut‐
       down sequence should check these environment variables and call halt(8) with the right options for these options to actually have any effect.  Debian 3.1 (sarge) supports this.

Cheers

Laurent Bigonville

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.utf8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sysvinit depends on:
ii  debianutils     4.3.4
ii  initscripts     2.88dsf-43
ii  libc6           2.17-7
ii  libselinux1     2.1.13-2
ii  libsepol1       2.1.9-2
ii  sysv-rc         2.88dsf-43
ii  sysvinit-utils  2.88dsf-43

sysvinit recommends no packages.

sysvinit suggests no packages.

-- no debconf information



More information about the Pkg-sysvinit-devel mailing list