summaryrefslogtreecommitdiffstats
path: root/src/monitor
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-11-05 10:21:23 -0500
committerJakub Hrozek <jhrozek@redhat.com>2012-11-08 11:12:25 +0100
commit157223dce84e1fb8aa1edbb02dce02a0e4f76f2b (patch)
tree883d45af1725b717516c60b824efed41863b9442 /src/monitor
parentec2102d767bd658668d59db0954013c9c20c15dd (diff)
downloadsssd-157223dce84e1fb8aa1edbb02dce02a0e4f76f2b.tar.gz
sssd-157223dce84e1fb8aa1edbb02dce02a0e4f76f2b.tar.xz
sssd-157223dce84e1fb8aa1edbb02dce02a0e4f76f2b.zip
Monitor: Better debugging for ping timeouts
Diffstat (limited to 'src/monitor')
-rw-r--r--src/monitor/monitor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index fac164426..956efb13c 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -913,6 +913,10 @@ static errno_t get_ping_config(struct mt_ctx *ctx, const char *path,
svc->ping_time = MONITOR_DEF_PING_TIME;
}
+ DEBUG(SSSDBG_CONF_SETTINGS,
+ ("Time between service pings for [%s]: [%d]\n",
+ svc->name, svc->ping_time));
+
ret = confdb_get_int(ctx->cdb, path,
CONFDB_SERVICE_FORCE_TIMEOUT,
MONITOR_DEF_FORCE_TIME, &svc->kill_time);
@@ -927,6 +931,10 @@ static errno_t get_ping_config(struct mt_ctx *ctx, const char *path,
svc->kill_time = MONITOR_DEF_FORCE_TIME;
}
+ DEBUG(SSSDBG_CONF_SETTINGS,
+ ("Time between SIGTERM and SIGKILL for [%s]: [%d]\n",
+ svc->name, svc->kill_time));
+
return EOK;
}