Page 1 of 1
shutdown problem
Posted: 22 Oct 2008, 11:02
by jws
shutdown -r as root works OK; connections are cut, half a minute (or so) of blinkenlights, machine comes up again.
But shutdown -h doesn't work. A shutdown message is broadcast over the LAN, connections are cut, and the machine goes into blinkenlights state -- forever. Pressing the button on the back has no effect. You have to pull the power plug; then the machine can be restarted without no ill effects. But pulling the plug seems a bit rude.
Posted: 22 Oct 2008, 12:28
by Bahurim
Shouldn't it be be
as root or admin of course. That is what I have always used but I am not sure if leaving the 'now' off would have any ill effect.
Posted: 22 Oct 2008, 13:21
by jws
Oh, yes, of course. I should have included the "now" in my post. The problem is, as root:
"shutdown -r now" works.
"shutdown -h now" does not work; machine keeps blinking forever.
Posted: 22 Oct 2008, 14:31
by davidI
Try -hP, which tells it to poweroff, not just to halt. (Actually I just do "init 0", but that might be a bit heavy-handed)
From the shutdown man page:
-h Halt or poweroff after shutdown.
-H Halt action is to halt or drop into boot monitor on systems that
support it.
-P Halt action is to turn off the power.
Posted: 22 Oct 2008, 14:57
by Cheeseboy
I always used "poweroff" without problem with the old bubba, but it doesn't seem to work with the new one.
I will try your suggestions as well.
Thanks.
Posted: 22 Oct 2008, 15:35
by carl
the web admin shutdown calls /sbin/poweroff (which is an symlink to /sbin/halt)
/Carl
Posted: 24 Oct 2008, 07:30
by jws
carl wrote:the web admin shutdown calls /sbin/poweroff (which is an symlink to /sbin/halt)
/Carl
In my case, also /sbin/poweroff does not work (as root). Nor does "shutdown -hP now". The only neat way of stopping the box is by pressing the reset button until the light blinks.
In /etc/default/ is a file called halt, which is exactly the same on the bubba as on my Debian Sid system. It says:
# Default behaviour of shutdown -h / halt. Set to "halt" or "poweroff".
HALT=poweroff
Is this default behaviour somehow changed somewhere else in the system? I must confess that I have removed the web admin system