重啓命令:reboot與init 6的區別

"init 6" 基於一系列/etc/inittab文件,並且每個應用都會有一個相應shutdown腳本。
'init 6' 調用一系列shutdown腳本(/etc/rc0.d/K*)來使系統優雅關機; 
'reboot'並不執行這些過程,reboot更是一個 kernel級別的命令,不對應用使用shutdown腳本。 .
我們應該在通常情況下使用 init 6.
在出問題的狀況下或強制重啓 時使用reboot.


對這兩個操作使用man命令看到的內容如下:
init 6 Stop the operating system and reboot to the state defined by the initdefault entry in /etc/inittab.

reboot - reboot performs a sync(1M) operation on the disks, and then a
multi- user reboot is initiated. See init(1M) for details.



來自:http://hi.baidu.com/abovegrd/blog/item/a7a82ddc90d34055cdbf1a66.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章