Cleanup start/refresh.
[apps/pfixtools.git] / postlicyd / main-postlicyd.c
index 87920be..dab0bf0 100644 (file)
@@ -83,7 +83,10 @@ static bool config_refresh(void *mconfig)
     if (filter_running > 0) {
         return true;
     }
+    log_state = "refreshing ";
+    info("reloading configuration");
     bool ret = config_reload(mconfig);
+    log_state = "";
     foreach (client_t **server, busy) {
         client_io_ro(*server);
     }}
@@ -336,10 +339,10 @@ int main(int argc, char *argv[])
         return EXIT_FAILURE;
     }
 
-    info("%s v%s...", DAEMON_NAME, DAEMON_VERSION);
     if (check_conf) {
         return config_check(argv[optind]) ? EXIT_SUCCESS : EXIT_FAILURE;
     }
+    info("%s v%s...", DAEMON_NAME, DAEMON_VERSION);
 
     if (pidfile_open(pidfile) < 0) {
         crit("unable to write pidfile %s", pidfile);