Stopping all application processes if router process dies.
Unit master process restarts the router if the router accidentally dies. New router process receives the configuration from controller and starts configured applications. The information of running applications cannot be transferred to router because currently there is no persistent application identifier. To avoid orphan application processes started by died router, master process stops all currently running applications once it receives SIGCHLD for router process.
This commit is contained in:
@@ -21,7 +21,7 @@ typedef enum {
|
||||
|
||||
nxt_int_t nxt_main_process_start(nxt_thread_t *thr, nxt_task_t *task,
|
||||
nxt_runtime_t *runtime);
|
||||
void nxt_main_stop_worker_processes(nxt_task_t *task, nxt_runtime_t *runtime);
|
||||
void nxt_main_stop_all_processes(nxt_task_t *task, nxt_runtime_t *runtime);
|
||||
|
||||
nxt_int_t nxt_controller_start(nxt_task_t *task, void *data);
|
||||
nxt_int_t nxt_router_start(nxt_task_t *task, void *data);
|
||||
|
||||
Reference in New Issue
Block a user