Unify helper snotes and make netwide.
This commit is contained in:
parent
06c5309534
commit
f085388a74
4 changed files with 13 additions and 7 deletions
|
@ -224,11 +224,11 @@ cmd_oper_warn(int parc, char **parv)
|
||||||
switch(*parv[1])
|
switch(*parv[1])
|
||||||
{
|
{
|
||||||
case 'D': /* Debug */
|
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]);
|
idebug("authd: %s", parv[2]);
|
||||||
break;
|
break;
|
||||||
case 'I': /* Info */
|
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]);
|
inotice("authd: %s", parv[2]);
|
||||||
break;
|
break;
|
||||||
case 'W': /* Warning */
|
case 'W': /* Warning */
|
||||||
|
@ -383,8 +383,8 @@ authd_abort_client(struct Client *client_p)
|
||||||
static void
|
static void
|
||||||
restart_authd_cb(rb_helper * helper)
|
restart_authd_cb(rb_helper * helper)
|
||||||
{
|
{
|
||||||
iwarn("authd: restart_authd_cb called, authd died?");
|
iwarn("authd helper died - attempting to restart");
|
||||||
sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd: restart_authd_cb called, authd died?");
|
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "authdd helper died - attempting to restart");
|
||||||
|
|
||||||
if(helper != NULL)
|
if(helper != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -104,11 +104,13 @@ start_bandb(void)
|
||||||
if(bandb_helper == NULL)
|
if(bandb_helper == NULL)
|
||||||
{
|
{
|
||||||
ilog(L_MAIN, "Unable to start bandb: %s", strerror(errno));
|
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));
|
strerror(errno));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ilog(L_MAIN, "bandb helper started");
|
||||||
|
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "bandb helper started");
|
||||||
rb_helper_run(bandb_helper);
|
rb_helper_run(bandb_helper);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -434,9 +436,9 @@ bandb_rehash_bans(void)
|
||||||
static void
|
static void
|
||||||
bandb_restart_cb(rb_helper *helper)
|
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,
|
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
|
||||||
"bandb - bandb_restart_cb called, bandb helper died?");
|
"bandb helper died - attempting to restart");
|
||||||
if(helper != NULL)
|
if(helper != NULL)
|
||||||
{
|
{
|
||||||
rb_helper_close(helper);
|
rb_helper_close(helper);
|
||||||
|
|
|
@ -336,6 +336,8 @@ start_ssldaemon(int count)
|
||||||
ssl_do_pipe(P2, ctl);
|
ssl_do_pipe(P2, ctl);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
ilog(L_MAIN, "ssld helper started");
|
||||||
|
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "ssld helper started");
|
||||||
return started;
|
return started;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -322,6 +322,8 @@ start_wsockd(int count)
|
||||||
ws_do_pipe(P2, ctl);
|
ws_do_pipe(P2, ctl);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
ilog(L_MAIN, "wsockd helper started");
|
||||||
|
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "wsockd helper started");
|
||||||
return started;
|
return started;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue