]> jfr.im git - solanum.git/commitdiff
Unify helper snotes and make netwide.
authorUnit 193 <redacted>
Fri, 21 Oct 2022 06:47:15 +0000 (02:47 -0400)
committerDoug Freed <redacted>
Fri, 21 Oct 2022 07:00:22 +0000 (03:00 -0400)
ircd/authproc.c
ircd/bandbi.c
ircd/sslproc.c
ircd/wsproc.c

index 36b45f6496a26d138c1682dea1444f46c09eded9..293abb6f8c441a3625eade79b0367fd9ea2f98e7 100644 (file)
@@ -224,11 +224,11 @@ cmd_oper_warn(int parc, char **parv)
        switch(*parv[1])
        {
        case 'D':       /* Debug */
-               sendto_realops_snomask(SNO_DEBUG, L_ALL, "authd debug: %s", parv[2]);
+               sendto_realops_snomask(SNO_DEBUG, L_NETWIDE, "authd debug: %s", parv[2]);
                idebug("authd: %s", parv[2]);
                break;
        case 'I':       /* Info */
-               sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd info: %s", parv[2]);
+               sendto_realops_snomask(SNO_DEBUG, L_NETWIDE, "authd info: %s", parv[2]);
                inotice("authd: %s", parv[2]);
                break;
        case 'W':       /* Warning */
@@ -383,8 +383,8 @@ authd_abort_client(struct Client *client_p)
 static void
 restart_authd_cb(rb_helper * helper)
 {
-       iwarn("authd: restart_authd_cb called, authd died?");
-       sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd: restart_authd_cb called, authd died?");
+       iwarn("authd helper died - attempting to restart");
+       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "authdd helper died - attempting to restart");
 
        if(helper != NULL)
        {
index 5927934e38b41897d26c4e51e47d3bbe7c66016b..cc7094844fd28a9a353815b275001c6c40f8cfe7 100644 (file)
@@ -104,11 +104,13 @@ start_bandb(void)
        if(bandb_helper == NULL)
        {
                ilog(L_MAIN, "Unable to start bandb: %s", strerror(errno));
-               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Unable to start bandb: %s",
+               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Unable to start bandb helper: %s",
                                     strerror(errno));
                return 1;
        }
 
+       ilog(L_MAIN, "bandb helper started");
+       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "bandb helper started");
        rb_helper_run(bandb_helper);
        return 0;
 }
@@ -434,9 +436,9 @@ bandb_rehash_bans(void)
 static void
 bandb_restart_cb(rb_helper *helper)
 {
-       ilog(L_MAIN, "bandb - bandb_restart_cb called, bandb helper died?");
+       ilog(L_MAIN, "bandb helper died - attempting to restart");
        sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
-                            "bandb - bandb_restart_cb called, bandb helper died?");
+                            "bandb helper died - attempting to restart");
        if(helper != NULL)
        {
                rb_helper_close(helper);
index f9d3efc313d83582ad3f7cb65200134d797c9c6b..e88724a4de448f7624708279d3268e4f7c2da6c0 100644 (file)
@@ -336,6 +336,8 @@ start_ssldaemon(int count)
                ssl_do_pipe(P2, ctl);
 
        }
+       ilog(L_MAIN, "ssld helper started");
+       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "ssld helper started");
        return started;
 }
 
index 612a334a189c644fe0c272f51e5b81f2291ec1bd..973826b1094def60d0d83489561fbaa81afcf131 100644 (file)
@@ -322,6 +322,8 @@ start_wsockd(int count)
                ws_do_pipe(P2, ctl);
 
        }
+       ilog(L_MAIN, "wsockd helper started");
+       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "wsockd helper started");
        return started;
 }