After entering
shutdown now
in terminal I get everything running normally and then:
All processes ended withing 2 seconds...done
INIT: Going single user
INIT: Sending processes the TERM signal
INIT: Sending processes the KILL signal
Give root password for maintenance(or....
I press Ctrl + D, and it shows me login screen Debian. Shutdown through GUI works properly.
UPDATE 1
It seems some process hangs.
Moreover, I've managed to power off the server through several retries. Recently I've installed only ntp and ntpdate, nothing more.
I suppose it might be it conflicting with iptables.
You need to use the
-h
switch to halt the system. Default forshutdown
is to switch to run level 1 (maintenance).See
man shutdown
.Use the -h option to shutdown to request a halt or a power off instead of just requesting to init that you are going to single user mode (which seems to be the default behaviour)
shutdown now
drops your Debian tomaintenance mode
. Useshutdown -h now
instead.You can save some typing by using 'halt' instead of 'shutdown -h now'