I've got a fresh CentOS 7 test machine, fully patched. The command: shutdown -h now surprisingly does not halt the machine. Instead it reboots it. WTF? I found the following Debian discussion which seems to be the same issue: <bugs.debian.org/cgi-bin/bugreport.cgi?bug=766338> However, removing kexec-tools in this case did not solve the problem. Nor does "systemctl poweroff" work. Does anyone else see this? No, nothing is filed in bugzilla yet. Devin
On 1/15/2015 8:05 PM, Devin Reade wrote:> I've got a fresh CentOS 7 test machine, fully patched. The command: > > shutdown -h nowI've seen systems with broken ACPI BIOS support auto-restart on a shutdown. sometimes the behavior can be modified with a BIOS option. -- john r pierce 37N 122W somewhere on the middle of the left coast
On 01/16/2015 05:05 AM, Devin Reade wrote:> I've got a fresh CentOS 7 test machine, fully patched. The command: > > shutdown -h now > > surprisingly does not halt the machine. Instead it reboots it. WTF? > > I found the following Debian discussion which seems to be the same > issue: <bugs.debian.org/cgi-bin/bugreport.cgi?bug=766338> > > However, removing kexec-tools in this case did not solve the problem. > Nor does "systemctl poweroff" work. > > Does anyone else see this? No, nothing is filed in bugzilla yet. > > Devin >same here, using a "ASUS All Series/H97M-PLUS, BIOS 2305 10/09/2014" (as per dmesg|grep ASUS). The workaround is a line for i in /sys/bus/usb/devices/*/power/control ; do echo on > $i ; done in /etc/rc.local . Unfortunately this prevents powersaving of all USB ports/hubs. What didn't work: I created /usr/lib/systemd/system/stopusb.service with [Unit] Description=Power-on USB in prep for shutdown [Service] Type=oneshot ExecStart=/bin/sh -c "for i in /sys/bus/usb/devices/*/power/control ; do echo on > \$i ; done" ExecStop=/bin/sh -c "for i in /sys/bus/usb/devices/*/power/control ; do echo on > \$i ; done" RemainAfterExit=yes [Install] WantedBy=poweroff.target but this seems to have no effect. Maybe the "poweroff" target does not really exist. I think someone more experienced with systemd could fix this. HTH, Kay
On 01/16/2015 09:51 AM, Kay Diederichs wrote:> On 01/16/2015 05:05 AM, Devin Reade wrote: >> I've got a fresh CentOS 7 test machine, fully patched. The command: >> >> shutdown -h now >> >> surprisingly does not halt the machine. Instead it reboots it. WTF? >> >> I found the following Debian discussion which seems to be the same >> issue: <bugs.debian.org/cgi-bin/bugreport.cgi?bug=766338> >> >> However, removing kexec-tools in this case did not solve the problem. >> Nor does "systemctl poweroff" work. >> >> Does anyone else see this? No, nothing is filed in bugzilla yet. >> >> Devin >> > > same here, using a "ASUS All Series/H97M-PLUS, BIOS 2305 10/09/2014" (as > per dmesg|grep ASUS). > > The workaround is a line > > for i in /sys/bus/usb/devices/*/power/control ; do echo on > $i ; done > > in /etc/rc.local . Unfortunately this prevents powersaving of all USB > ports/hubs. > > What didn't work: I created /usr/lib/systemd/system/stopusb.service with > > [Unit] > Description=Power-on USB in prep for shutdown > > [Service] > Type=oneshot > ExecStart=/bin/sh -c "for i in /sys/bus/usb/devices/*/power/control ; do > echo on > \$i ; done" > ExecStop=/bin/sh -c "for i in /sys/bus/usb/devices/*/power/control ; do > echo on > \$i ; done" > RemainAfterExit=yes > > [Install] > WantedBy=poweroff.target > > but this seems to have no effect. Maybe the "poweroff" target does not > really exist. I think someone more experienced with systemd could fix this. > > HTH, > > Kay >Forgot to say: the problem does not exist when "Wake on LAN" is disabled in the BIOS (but I need wake-on-LAN).
Answering Devin Reade <gdr at gno.org> (Thu, 15 Jan 2015 21:05:12 -0700): Hi!> I've got a fresh CentOS 7 test machine, fully patched. The command: > shutdown -h now > surprisingly does not halt the machine. Instead it reboots it. WTF?Maybe it helps to poweroff explicitly? shutdown -hP now I had the same problem on SUSE machines. Cheers Dirk -- d5e.org - taskwarrior.org bloonix.org - gelberhund.ch yawnrz.com - myown-it.com