Форум русскоязычного сообщества Ubuntu


Считаете, что Ubuntu недостаточно дружелюбна к новичкам?
Помогите создать новое Руководство для новичков!

Автор Тема: Aoache. Чем отличается reload от restart?  (Прочитано 3272 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Henryh

  • Автор темы
  • Активист
  • *
  • Сообщений: 428
    • Просмотр профиля
    • henrydev.ru
Aoache. Чем отличается reload от restart?
« : 18 Декабря 2010, 12:05:03 »
Команды:
/etc/init.d/apache2(invoke-rc.d apache2) reload
и
/etc/init.d/apache2(invoke-rc.d apache2) restart

Есть предположение что RESTART полностью перезапускает, а RELOAD только файл конфигурации и список сайтов. Но хотелось бы иметь что то большее чем догадки.
Автоматизируй это

Оффлайн Mam(O)n

  • Старожил
  • *
  • Сообщений: 5855
    • Просмотр профиля
Re: Aoache. Чем отличается reload от restart?
« Ответ #1 : 18 Декабря 2010, 12:34:28 »
reload запускает команду apache2ctl graceful
Цитата: man apache2ctl
       graceful      Gracefully restarts the Apache daemon  by  sending  it  a
                     SIGUSR1.   If  the  daemon is not running, it is started.
                     This differs from a normal restart in that currently open
                     connections  are  not aborted.  A side effect is that old
                     log files will not be  closed  immediately.   This  means
                     that  if  used  in  a  log rotation script, a substantial
                     delay may be necessary to ensure that the old  log  files
                     are closed before processing them.  This command automat‐
                     ically checks the configuration files via apache2ctl con‐
                     figtest  before  initiating  the  restart to to catch the
                     most obvious errors.  However, it is still  possible  for
                     the daemon to die because of problems with the configura‐
                     tion.

 

Страница сгенерирована за 0.014 секунд. Запросов: 19.