- 论坛徽章:
- 0
|
"init 0" VS "shutdown -y -g0 -i0"
现把sa238中关于关闭命令的定义帖出来,希望大家有所收获
You can use the init command to shutdown, poweroff, or reboot
a system in a clean and orderly manner. It executes the rc0 kill scripts,
however, this command does not warn logged in users that the system
is being shutdown, and there is no delay.
The shutdown command is a script that invokes init to shutdown,
poweroff, or reboot the system. It does execute the rc0 kill scripts
to shutdown processes and applications gracefully. Unlike the init
command, the shutdown command does the following:
The halt command performs an immediate shutdown. It does not
execute the rc0 kill scripts, it does not notify logged in users, and
there is no delay.
To shut down the system to stop the Solaris Operating Environment
and display the ok prompt:
The poweroff command performs an immediate shutdown. It does
not execute the rc0 kill scripts, no logged in users are notified, and
there is no delay.
The reboot command performs an immediate shutdown and brings
the system to run level 3 by default. The reboot command differs
from the init 6 command because it does not execute the rc0 kill
scripts, and it does not notify logged in users.
|
|