projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup start/refresh.
[apps/pfixtools.git]
/
postlicyd
/
main-postlicyd.c
diff --git
a/postlicyd/main-postlicyd.c
b/postlicyd/main-postlicyd.c
index
87920be
..
dab0bf0
100644
(file)
--- a/
postlicyd/main-postlicyd.c
+++ b/
postlicyd/main-postlicyd.c
@@
-83,7
+83,10
@@
static bool config_refresh(void *mconfig)
if (filter_running > 0) {
return true;
}
if (filter_running > 0) {
return true;
}
+ log_state = "refreshing ";
+ info("reloading configuration");
bool ret = config_reload(mconfig);
bool ret = config_reload(mconfig);
+ log_state = "";
foreach (client_t **server, busy) {
client_io_ro(*server);
}}
foreach (client_t **server, busy) {
client_io_ro(*server);
}}
@@
-336,10
+339,10
@@
int main(int argc, char *argv[])
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
- info("%s v%s...", DAEMON_NAME, DAEMON_VERSION);
if (check_conf) {
return config_check(argv[optind]) ? EXIT_SUCCESS : EXIT_FAILURE;
}
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);
if (pidfile_open(pidfile) < 0) {
crit("unable to write pidfile %s", pidfile);