Using the following components: sys-apps/baselayout-1.11.14-r8 sys-apps/sysvinit-2.86-r3 Based on the SHUTDOWN(8) man page, I expect the following : # shutdown -hH now to shutdown and leave power on, however it simply turns off the power as if the -H option had not been given. Putting the following into /etc/init.d/shutdown.sh seems to give me the desired behavior (beware: novice at work): if [[ $INIT_HALT == "HALT" ]]; then /sbin/halt -ihd; else /sbin/halt -ihdp; fi Relevant excerpt from shutdown(8) man page: OPTIONS (...) -P Halt action is to turn off the power. -H Halt action is to halt or drop into boot monitor on systems that support it. (...) 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. emerge --info, in case it matters Portage 2.0.54-r2 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r7 x86_64) ================================================================= System uname: 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.4.2 dev-python/pycrypto: [Not Present] dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrors.pair.com http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://katana/gentoo-portage" USE="amd64 X alsa arts audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr cli crypt cups curl dbus dri dvd dvdr dvdread eds emboss encode esd exif expat fam ffmpeg flac foomatic foomaticdb fortran gdbm gif gmp gphoto2 gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 isdnlog java jpeg kde lcms lm_sensors lzw lzw-tiff mad mikmod mjpeg mng mozilla mp3 mpeg mplayer ncurses nls noamazon nptl nsplugin ogg oggvorbis opengl oss pam pcre pdflib perl png ppds pppd python qt quicktime readline reflection samba sdl session spell spl ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev usb userlocales vorbis xine xml2 xmms xorg xpm xv xvid zlib video_cards_vesa video_cards_via userland_GNU kernel_linux elibc_glibc" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Thanks for the patch, we have this fixed in our svn repo and will feature in baselayout-1.11.16 (if we release it) or baselayout-1.12.2
thanks