httpd reload は HUPシグナルを送る

/etc/init.d/httpd reloadは
HUPシグナルを送ります。

# /etc/init.d/httpd status
httpd (pid 15558 15546 15537 15493 15486 15485 15483 13372 3796) を実行中…
# /etc/init.d/httpd reload
httpd を再読み込み中: [ OK ]
# /etc/init.d/httpd status
httpd (pid 15654 15648 15638 15637 15636 15635 15634 3796) を実行中…

な感じで 3796の親プロセスを残して子プロセスがすべて変わっています。

急な再起動
シグナル: HUP
apachectl -k restart
HUP あるいは restart シグナルを親プロセスに送ると、 TERM と同様に子プロセスを kill しますが、 親プロセスは終了しません。 設定ファイルを再読込して、ログファイル全てを開き直します。 その後、新しい子プロセスを起動して応答を続けます。

mod_status を使っている場合は、HUP が送られた場合に サーバ統計がゼロに設定されることに注意してください。

graceful 再起動時は、再起動前に構文チェックが行われます。 もし構文エラーがあればその旨が示され、再起動は行われません。

http://httpd.apache.org/docs/2.3/ja/stopping.html

This entry was posted on 土曜日, 2月 13th, 2010 at 11:17 PM and is filed under Apache, server. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。