diff options
author | Andrew Dolgov <[email protected]> | 2013-05-29 15:11:46 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-29 15:11:46 +0400 |
commit | 642432fc39956e92b599f204d64e0b365f36edf2 (patch) | |
tree | 400da963742ceec1ddfd56dd425a72d23826bb28 | |
parent | 8ff2a86cf33ed573602a4c6abf8ed8e4ee7c45f9 (diff) |
daemon: add sigterm handler for master
-rwxr-xr-x | update_daemon2.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/update_daemon2.php b/update_daemon2.php index d5b6a45e3..9d948a64d 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -203,6 +203,7 @@ if (!$master_handlers_installed) { _debug("[MASTER] installing shutdown handlers"); pcntl_signal(SIGINT, 'sigint_handler'); + pcntl_signal(SIGTERM, 'sigint_handler'); register_shutdown_function('shutdown', posix_getpid()); $master_handlers_installed = true; } |