diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-03-20 11:10:56 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-03-20 11:14:57 -0400 |
commit | de69927053fcc56a337af4ab0c93d24444eb6c24 (patch) | |
tree | db4ee2b6d5aac4e217c2deb94d45cb0f09c08ade /server/monitor | |
parent | 7d5bf9a11d60e5330e12d5d94ebba8d6a4606eb0 (diff) | |
download | sssd-de69927053fcc56a337af4ab0c93d24444eb6c24.tar.gz sssd-de69927053fcc56a337af4ab0c93d24444eb6c24.tar.bz2 sssd-de69927053fcc56a337af4ab0c93d24444eb6c24.zip |
Enhance server_setup
Now it can load from scratch default configuration that is valid for all
daemons.
First thing, make it possible for each daemon/provider to set its own debug
level in its configuration entry.
Diffstat (limited to 'server/monitor')
-rw-r--r-- | server/monitor/monitor.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c index 4a6abdc9..0ee344cb 100644 --- a/server/monitor/monitor.c +++ b/server/monitor/monitor.c @@ -37,6 +37,7 @@ /* ping time cannot be less then once every few seconds or the * monitor will get crazy hammering children with messages */ #define MONITOR_DEF_PING_TIME 10 +#define MONITOR_CONF_ENTRY "config/services/monitor" struct mt_conn { struct sbus_conn_ctx *conn_ctx; @@ -136,7 +137,7 @@ static int monitor_dbus_init(struct mt_ctx *ctx) } ret = confdb_get_string(ctx->cdb, ctx, - "config/services/monitor", "sbusAddress", + MONITOR_CONF_ENTRY, "sbusAddress", default_monitor_address, &sbus_address); if (ret != EOK) { talloc_free(default_monitor_address); @@ -346,7 +347,7 @@ int get_monitor_config(struct mt_ctx *ctx) int ret; ret = confdb_get_int(ctx->cdb, ctx, - "config/services/monitor", "sbusTimeout", + MONITOR_CONF_ENTRY, "sbusTimeout", -1, &ctx->service_id_timeout); if (ret != EOK) { return ret; @@ -1121,7 +1122,7 @@ int main(int argc, const char *argv[]) flags |= FLAGS_PID_FILE; /* set up things like debug , signals, daemonization, etc... */ - ret = server_setup("sssd", flags, &main_ctx); + ret = server_setup("sssd", flags, MONITOR_CONF_ENTRY, &main_ctx); if (ret != EOK) return 2; ret = monitor_process_init(main_ctx, |