You are not logged in.
Hi guys
Everytime I use "sudo shutdown now" my computer will always shutdown to maintenance mode. Then it will ask root password to enter maintenance mode, or ctrl-D to continue. If I enter the password and then type "shutdown now" it will try to shutdown, but there is this init:2138 that my system cannot kill (forget what is the entire message), every 120 seconds it always display this message and my computer will never shutdown. If I press ctrl-D, the system will go back to login screen. Any idea how to shutdown my machine?
Does this happen because the system is unable to cleanly kill processes?
My spec: i686, syslinux, slim, openbox and xfce4. Please tell me if I missed something.
The shutdown command is done from xfce's terminal, because currently I haven't create shutdown menu in openbox.
Last edited by chrlin (2011-12-19 02:23:40)
The Arch Way - The Meaning of System - The Flow of Data - The Layer of Abstraction - The Power of Root - The Law of Command - The Communication of Terminal - The Union of Man and Machine
上之道 - 生之義 - 氣之流 - 天之層 - 活之力 - 命之理 - 靈之通 - 天人合一
Offline
you have to add the -h option to halt (power off) your system after shutdown. so try "sudo shutdown -h now"
Offline
Or use 'sudo poweroff'.
Offline
or sudo halt -p
Offline
thanks for the answers! all of them work. why would someone make a difference between 'shutdown' and 'halt' though? anyway, case closed
The Arch Way - The Meaning of System - The Flow of Data - The Layer of Abstraction - The Power of Root - The Law of Command - The Communication of Terminal - The Union of Man and Machine
上之道 - 生之義 - 氣之流 - 天之層 - 活之力 - 命之理 - 靈之通 - 天人合一
Offline
Documentation is there for a purpose. ![]()
man halt and man shutdown are youre friends. So for example in "man halt":
If halt or reboot is called when the system is not in runlevel 0 or 6,
in other words when it's running normally, shutdown will be invoked
instead (with the -h or -r flag). For more info see the shutdown(8)
manpage.To know or not to know ...
... the questions remain forever.
Offline
Thanks for the advice. After looking at the man pages I guess I can say that:
halt / reboot / poweroff -> kills the machine
shutdown - > tell everyone using this computer that the computer is going to shutdown. perhaps more useful in servers, to avoid somebody losing their data because the server is going down. if we suddenly halt the server, many people will perhaps lose their data.
indeed, sometimes I am only looking at the symptoms and searched the google, but forget to ask the creator themselves the meaning of the system.
"meaning of the system" - quite cool, put this on my signature ![]()
The Arch Way - The Meaning of System - The Flow of Data - The Layer of Abstraction - The Power of Root - The Law of Command - The Communication of Terminal - The Union of Man and Machine
上之道 - 生之義 - 氣之流 - 天之層 - 活之力 - 命之理 - 靈之通 - 天人合一
Offline