summaryrefslogtreecommitdiff
path: root/pullreqd.c
diff options
context:
space:
mode:
Diffstat (limited to 'pullreqd.c')
-rw-r--r--pullreqd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pullreqd.c b/pullreqd.c
index 2df8809..95d131a 100644
--- a/pullreqd.c
+++ b/pullreqd.c
@@ -79,12 +79,23 @@ int init_config(char *config_file, config **cfg) {
}
int main(int argc, char **argv) {
+ config *cfg;
+ char *config_file = "test.conf";
int done = 0;
+ int config_read = 0;
+
init_daemon(1, "/");
syslog(LOG_NOTICE, "pullreqd started.");
+
+ /* Read the config file. */
+ config_read = init_config(config_file, &cfg);
+ /* Immediatly exit, if we failed to read the config file. */
+ done = !config_read;
+
for (; !done;) {
break;
}
+
syslog(LOG_NOTICE, "pullreqd stopped.");
closelog();