4 июня 2011 г. 21:50 пользователь <[email protected]> написал:
> Уже объясняли, что основная разница в выполнении rc-скриптов
> с параметром stop. В некоторых случаях результат может отличаться
> от результата SIGTERM.
Приведите хоть один реальный пример, при котором процесс не
воспринимает SIGTERM. Я хотел бы пожать горло разработчику такого
демона/итп.
И, исходя из man reboot:
-n The file system cache is not flushed. This option should proba-
bly not be used.
-q The system is halted or restarted quickly and ungracefully, and
only the flushing of the file system cache is performed (if the
-n option is not specified). This option should probably not be
used.
Опасные опции помечены как "should probably not be used"
Нигде в мане не указано, что использование reboot опасно.
И оттуда же:
Normally, the shutdown(8) utility is used when the system needs to be
halted or restarted, giving users advance warning of their impending doom
and ****************cleanly terminating***************** specific programs.
Надеюсь, что смысл выражения "cleanly terminating" объяснять не нужно.