diff options
Diffstat (limited to 'server/monitor/monitor.c')
-rw-r--r-- | server/monitor/monitor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c index 16811224..69640b99 100644 --- a/server/monitor/monitor.c +++ b/server/monitor/monitor.c @@ -276,8 +276,10 @@ static void tasks_check_handler(struct tevent_context *ev, } if (svc->last_pong != 0) { - if ((now - svc->last_pong) > 30) { /* TODO: get val from config */ + if ((now - svc->last_pong) > (svc->ping_time * 3)) { /* too long since we last heard of this process */ + DEBUG(1, ("Killing service [%s], not responding to pings!\n", + svc->name)); monitor_kill_service(svc); process_alive = false; } |