src/server/daemon/main.c

changeset 74
5bc6d078fb2c
parent 68
f5102a892ed4
child 79
f48cea237ec3
equal deleted inserted replaced
71:069c152f6272 74:5bc6d078fb2c
40 #include "../util/date.h" 40 #include "../util/date.h"
41 41
42 #include "webserver.h" 42 #include "webserver.h"
43 #include "log.h" 43 #include "log.h"
44 #include "httprequest.h" 44 #include "httprequest.h"
45 #include "httplistener.h"
45 46
46 #include "configmanager.h" 47 #include "configmanager.h"
47 48
48 int std_pipe_fds[2]; 49 int std_pipe_fds[2];
49 50
61 log_ereport(LOG_INFORM, "sig reload"); 62 log_ereport(LOG_INFORM, "sig reload");
62 63
63 if(cfgmgr_load_config() != 0) { 64 if(cfgmgr_load_config() != 0) {
64 log_ereport(LOG_FAILURE, "cannot reload config"); 65 log_ereport(LOG_FAILURE, "cannot reload config");
65 } 66 }
67 // start newly created listeners
68 start_all_listener();
66 69
67 signal(SIGUSR1, sig_usr1_reload); 70 signal(SIGUSR1, sig_usr1_reload);
68 } 71 }
69 72
70 /* 73 /*

mercurial