\ HUP handling. - Reload configuration - Start the new worker processes with a new configuration - Gracefully shutdown the old worker processes
(self)
| 276 | handle_cld = handle_chld |
| 277 | |
| 278 | def handle_hup(self): |
| 279 | """\ |
| 280 | HUP handling. |
| 281 | - Reload configuration |
| 282 | - Start the new worker processes with a new configuration |
| 283 | - Gracefully shutdown the old worker processes |
| 284 | """ |
| 285 | self.log.info("Hang up: %s", self.master_name) |
| 286 | self.reload() |
| 287 | # Forward to dirty arbiter |
| 288 | if self.dirty_arbiter_pid: |
| 289 | self.kill_dirty_arbiter(signal.SIGHUP) |
| 290 | |
| 291 | def handle_term(self): |
| 292 | "SIGTERM handling" |