Mailinglist Archive: opensuse (3031 mails)

< Previous Next >
Re: [opensuse] Why can't I use "shutdown now" to turn off my system?
  • From: Aaron Kulkis <akulkis00@xxxxxxxxxx>
  • Date: Mon, 04 Feb 2008 15:27:54 -0500
  • Message-id: <47A7754A.8010600@xxxxxxxxxx>
Kermit Mei wrote:
Hello!
I'm using openSuse 10.3 Linux in VirtualBox,and I just installed the
text mode.
I use the command "shutdown now" to turn off the machine.
But the result is as the following:

linux-Kermit:~# shutdown now
The system message from root (tty1)(Mon Feb ......<the time> ):
INIT: Switching to runlevel: 1
<snip>

Why the system goes to runlevel:1,but not shutdown?
Is "shutdown now" different from "init 1"?


Because you did not use the -h flag.

Shutdown without the -h flag takes the machine
into single-user operation (run-level 1).


To do a COMPLETE shutdown (halt), do this

# shutdown -h now

Now I ususlly use "init 0" to turn off the machine,is it right or wrong?

It works, but shutdown sends signals(*) to still-running
user programs giving them the opportunity to exit
gracefully before being killed off with SIGQUIT which
causes immediate termination, which can cause corruption
of data-integrity within files if there is any sort of
file update which is only partially complete at the time
SIGQUIT is received.

(*) for details, do this:
$ man kill


Thank you!



--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References