From 1f4f4f16337c37ab5680aacbfb45abecad8fcc0b Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 10 Sep 2009 10:22:50 -0400 Subject: Read the configuration parsing before daemonization We will now parse the config file and validate the confdb contents before processing the rest of the monitor startup. This will allow us to return an appropriate error code to the shell if the configuration is invalid. --- server/monitor/monitor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/monitor/monitor.h') diff --git a/server/monitor/monitor.h b/server/monitor/monitor.h index 0127bbffd..78e10ef1f 100644 --- a/server/monitor/monitor.h +++ b/server/monitor/monitor.h @@ -28,9 +28,9 @@ typedef int (*monitor_reconf_fn) (struct config_file_ctx *file_ctx, const char *filename); -int monitor_process_init(TALLOC_CTX *mem_ctx, - struct tevent_context *event_ctx, - struct confdb_ctx *cdb, +struct mt_ctx; + +int monitor_process_init(struct mt_ctx *ctx, const char *config_file); #endif /* _MONITOR_H */ -- cgit