免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 7205 | 回复: 15
打印 上一主题 下一主题

"init 0" VS "shutdown -y -g0 -i0" [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-03-24 17:12 |只看该作者 |倒序浏览
[这个贴子最后由bear在 2002/03/26 07:25pm 编辑]

请问SOLARIS中如何关机,我在运行SHUTDOWN后怎么关不掉呀?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2002-03-24 18:07 |只看该作者

"init 0" VS "shutdown -y -g0 -i0"

你可以使用命令: init 5 或 shutdown -i 5 now

论坛徽章:
0
3 [报告]
发表于 2002-03-24 20:40 |只看该作者

"init 0" VS "shutdown -y -g0 -i0"

init 5不太安全,在有些SUN的机器上会HANG,还是shutdown -y -g0 -i0安全

论坛徽章:
0
4 [报告]
发表于 2002-03-25 08:58 |只看该作者

"init 0" VS "shutdown -y -g0 -i0"

你用的是sparc或是intel的,如果是for sparc的,用fancy的建议比较好,如果是用intel的,用init 0比较好,我试过,如果用shutdown -y -g0 -i0 是不能装机的,

论坛徽章:
0
5 [报告]
发表于 2002-03-25 09:43 |只看该作者

"init 0" VS "shutdown -y -g0 -i0"

请问楼上,shutdown和init都是调用init进程读取/etc/rc*.d的内容来进行关机的,到底那里不同?为什么说shutdown比init好?

论坛徽章:
0
6 [报告]
发表于 2002-03-26 19:09 |只看该作者

"init 0" VS "shutdown -y -g0 -i0"

同意 mmmmn 的,都用脚本关机,有什么不一样???

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
7 [报告]
发表于 2002-03-26 19:23 |只看该作者

"init 0" VS "shutdown -y -g0 -i0"

[这个贴子最后由bear在 2002/03/26 07:29pm 编辑]

我碰到过一次,在rc2.d下的一个脚本运行有问题,导致shutdown -y -g0 -i0无法运行结束,而init 0却可以将挂起的脚本或应用kill掉,关掉机器,区别应该就在这里了.

"朽木可雕"对不起,我编辑了帖子的主题,因为想放入精华区,让大家更容易分辨内容

论坛徽章:
0
8 [报告]
发表于 2002-03-26 21:03 |只看该作者

"init 0" VS "shutdown -y -g0 -i0"

init 0执行关机脚本,退到ok.
shutdown -y -g0 -i0    产生关机提示,调用init 0.

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
9 [报告]
发表于 2002-03-27 08:57 |只看该作者

"init 0" VS "shutdown -y -g0 -i0"

我想应该不是简单的调用init 0.

论坛徽章:
0
10 [报告]
发表于 2002-03-27 09:17 |只看该作者

"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.


您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP