/*
- * $Id: main.cc,v 1.370 2003/04/20 05:28:58 robertc Exp $
+ * $Id: main.cc,v 1.371 2003/04/21 12:52:40 hno Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
#include "ACL.h"
/* for error reporting from xmalloc and friends */
-extern void (*failure_notify) (const char *);
+SQUIDCEXTERN void (*failure_notify) (const char *);
static int opt_send_signal = -1;
static int opt_no_daemon = 0;
static void mainRotate(void);
static void mainReconfigure(void);
-static SIGHDLR rotate_logs;
-static SIGHDLR reconfigure;
static void mainInitialize(void);
static void usage(void);
static void mainParseOptions(int, char **);
static void mainSetCwd(void);
static int checkRunningPid(void);
+#ifndef _SQUID_MSWIN_
static const char *squid_start_script = "squid_start";
+#endif
#if TEST_ACCESS
#include "test_access.c"
}
/* ARGSUSED */
-static void
+void
rotate_logs(int sig)
{
do_rotate = 1;
}
/* ARGSUSED */
-static void
+void
reconfigure(int sig)
{
do_reconfigure = 1;
version_string,
CONFIG_HOST_TYPE);
+#if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_)
+
+ if (WIN32_run_mode == _WIN_SQUID_RUN_MODE_SERVICE) {
+ debug(1, 0) ("Running as %s Windows System Service on %s\n", WIN32_Service_name, WIN32_OS_string);
+ debug(1, 0) ("Service command line is: %s\n", WIN32_Service_Command_Line);
+ } else
+ debug(1, 0) ("Running on %s\n",WIN32_OS_string);
+
+#endif
+
debug(1, 1) ("Process ID %d\n", (int) getpid());
debug(1, 1) ("With %d file descriptors available\n", Squid_MaxFD);
/*
- * $Id: protos.h,v 1.475 2003/04/20 05:28:59 robertc Exp $
+ * $Id: protos.h,v 1.476 2003/04/21 12:52:40 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
extern void serverConnectionsClose(void);
extern void shut_down(int);
+extern void rotate_logs(int);
+extern void reconfigure(int);
extern void start_announce(void *unused);