标签:
root@93a:~ # man reboot REBOOT(8) FreeBSD System Manager‘s Manual REBOOT(8) DESCRIPTION The halt and reboot utilities flush the file system cache to disk, send all running processes a SIGTERM (and subsequently a SIGKILL) and, respec- tively, halt or restart the system. The action is logged, including entering a shutdown record into the user accounting database.
root@93b:~ # man shutdown SHUTDOWN(8) FreeBSD System Manager‘s Manual SHUTDOWN(8) DESCRIPTION The shutdown utility provides an automated shutdown procedure for super- users to nicely notify users when the system is shutting down, saving them from system administrators, hackers, and gurus, who would otherwise not bother with such niceties.
-r The system is rebooted at the specified time.
本人英文较烂,按自己的翻译能力得知:
reboot过程会把系统的缓存写到硬盘,先发送SIGTERM再发送SIGKILL;
shutdown过程友好地通知线上用户,然后完好地保存。
结论即是:reboot与shutdown -r过程一致
然后再google看看:
先搜英文的资料
http://askubuntu.com/questions/441969/what-is-the-difference-between-reboot-and-shutdown-r
结论是:reboot uses shutdown -r
http://unix.stackexchange.com/questions/64280/what-is-the-difference-between-reboot-init-6-and-shutdown-r-now
结论是:reboot uses the shutdown command (with the -r switch).
再搜索中文的资料
http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=1383005&highlight=reboot%2Bshutdown%2B-r
结论是:reboot命令重启动系统时是删除所有的进程,而不是平稳地终止它们
下面是自己实际操作的结果
很明显reboot没有出现deamon平稳地终止过程,这是闹哪样啊。
标签:
原文地址:http://www.cnblogs.com/hjfeng1988/p/4519081.html