This patch is generated from the cygwin-svc branch of cygwin in squid Wed Sep 29 01:05:05 2004 GMT See http://devel.squid-cache.org/ Index: squid/configure.in diff -u squid/configure.in:1.8.2.50 squid/configure.in:1.8.2.10.2.32 --- squid/configure.in:1.8.2.50 Mon Feb 3 07:29:56 2003 +++ squid/configure.in Mon Feb 3 07:41:48 2003 @@ -906,6 +906,15 @@ ],[OPT_DEFAULT_HOSTS="/etc/hosts"]) AC_SUBST(OPT_DEFAULT_HOSTS) +dnl Enable WIN32 Service compile mode +AC_ARG_ENABLE(win32-service, +[ --enable-win32-service Compile Squid as a WIN32 Service + Works only on Windows NT and Windows 2000 Platforms.], +[ if test "$enableval" = "yes" ; then + echo "Enabling WIN32 run service mode" + AC_DEFINE(USE_WIN32_SERVICE,1,[Define Windows NT & Windows 2000 run service mode]) + fi +]) dnl Select auth schemes modules to build AC_ARG_ENABLE(auth, Index: squid/doc/win32-relnotes.txt diff -u squid/doc/win32-relnotes.txt:1.1.2.5 squid/doc/win32-relnotes.txt:1.1.2.2.2.6 --- squid/doc/win32-relnotes.txt:1.1.2.5 Sun Aug 11 09:45:09 2002 +++ squid/doc/win32-relnotes.txt Sun Aug 11 09:55:20 2002 @@ -1,6 +1,44 @@ WIN32 Squid Relese Notes +Windows Service run mode + +To enable the service mode, use the --enable-win32-service configure option +When in Windows service mode the -N Squid switch is disabled, and default run mode of +Squid is no daemon (=no service) mode, so is possible to run Squid from command line +for debug purpose with all command line options available. + +The service installation is made with -i command line switch, it's possible to use +-f switch at the same time for specify a different config-file settings for the Squid +Service that is stored on Registry. +A new -n switch specify the Windows Service Name, so multiple Squid instance are allowed. +"SquidNT" is the default when the switch is not used. + +So the install service syntax is "squid -i [-f file] [-n name]". + +To start as service is used a "hidden" --ntservice:service-name command line switch, +where service-name is the name specified with -n options at service install time. + +Service uninstallation is made with -r command line switch plus the appropriate +-n switch. + +The -k switch family must be used with the appropriate -f and -n switches, so the syntax is: + +squid -k command [-f file] -n service-name + +where service-name is the name specified with -n options at service install time. + +To use Squid original command line, the new -O switch must be used, the sintax is: + +squid -O cmdline [-n service-name] + +If multiple service command line options must be specified, use quote. The -n switch is +needed only when non default service name is in use. + +Example: + +squid -O "-D -a 8080" -n squidsvc + PSAPI.DLL (Process Status Helper) Considerations cvs [rdiff aborted]: received interrupt signal Killed by signal 2.