From: serassio <> Date: Sat, 2 Sep 2006 14:43:37 +0000 (+0000) Subject: Bug #1598: start_announce cannot be disabled X-Git-Tag: SQUID_3_0_PRE5~156 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=926375e6a2cad1cf17e7b81649c31a9e31a228a3;p=thirdparty%2Fsquid.git Bug #1598: start_announce cannot be disabled And also cannot be enabled with reconfigure. --- diff --git a/src/main.cc b/src/main.cc index 23541fb6c6..b1b7414110 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.432 2006/08/21 00:50:41 robertc Exp $ + * $Id: main.cc,v 1.433 2006/09/02 08:43:37 serassio Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -703,6 +703,14 @@ mainReconfigure(void) mimeInit(Config.mimeTablePathname); + if (Config.onoff.announce) { + if (!eventFind(start_announce, NULL)) + eventAdd("start_announce", start_announce, NULL, 3600.0, 1); + } else { + if (eventFind(start_announce, NULL)) + eventDelete(start_announce, NULL); + } + writePidFile(); /* write PID file */ debug(1, 1) ("Ready to serve requests.\n");