X-Git-Url: https://arthur.barton.de/gitweb/?p=ngircd.git;a=blobdiff_plain;f=src%2Fngircd%2Fconn.c;fp=src%2Fngircd%2Fconn.c;h=61f296ab5d1e6c4359a302f744f9cbae88ce8568;hp=100429435eeb6dcae4ed59c76db558a322e43262;hb=e4873b4d63d0bcd4914a1cee82599a13cfd77e47;hpb=3e535a295523853963438eb94f9cfa24c998b52f diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 10042943..61f296ab 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -66,6 +66,7 @@ #include "ng_ipaddr.h" #include "parse.h" #include "resolve.h" +#include "sighandlers.h" #define SERVER_WAIT (NONE - 1) /** "Wait for outgoing connection" flag */ @@ -673,6 +674,7 @@ Conn_Handler(void) Log(LOG_NOTICE, "Server \"%s\" (on \"%s\") ready.", Client_ID(Client_ThisServer()), Client_Hostname(Client_ThisServer())); + Signal_NotifySvcMgr("READY=1\n"); while (!NGIRCd_SignalQuit && !NGIRCd_SignalRestart) { t = time(NULL); @@ -791,10 +793,13 @@ Conn_Handler(void) } } - if (NGIRCd_SignalQuit) + if (NGIRCd_SignalQuit) { Log(LOG_NOTICE | LOG_snotice, "Server going down NOW!"); - else if (NGIRCd_SignalRestart) + Signal_NotifySvcMgr("STOPPING=1\n"); + } else if (NGIRCd_SignalRestart) { Log(LOG_NOTICE | LOG_snotice, "Server restarting NOW!"); + Signal_NotifySvcMgr("RELOADING=1\n"); + } } /* Conn_Handler */ /**