天天看點

linux伺服器重新開機init 6和reboot差別

init是改變系統的運作級别

init 6 -Stop the operating system and reboot to the state defined by the initdefault entry in /etc/inittab.

:init 6 基于一系列的/etc/inittab開機初始化檔案,并且每個程式都有相應的shutdown腳本,是以init 6則會調用一系列的shutdown腳本,是系統優雅關機(正常關閉運作的程式)

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

:reboot,是一個kernel核心級别的指令,不執行這些過程,不對應使用shutdown腳本

繼續閱讀