[Pkg-sysvinit-devel] Bug#374039: shutdown -h -H: warn that then cannot poweroff perhaps

Dan Jacobson jidanni at jidanni.org
Fri Jun 16 22:04:01 UTC 2006


Package: sysvinit
Version: 2.86.ds1-14.1
Severity: wishlist
File: /sbin/shutdown

Regarding: 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 shut-
       down script that calls halt(8)  as  the  last  thing  in  the  shutdown
       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.

1. I don't see any "scripts" left. They are all "ELF 32-bit LSB
       executable", no?

2. The halt(1) man page doesn't mention any INIT_HALT environment
   variable.

3. Well, I tried "-h -H", and guess what, it put my IBM Thinkpad in a
   unrebootable state... no button would respond, no way to poweroff
   either. I had to remove the AC cord, and remove the battery, to
   finally poweroff. So perhaps add a warning to the man page.




More information about the Pkg-sysvinit-devel mailing list