Hi,
After round 2, I made some new changes on CygWin port when compiled as
Windows service, so now is possible to run more Squid instances as a
Windows Service from the same squid.exe file.
The --enable-win32-service configure option still enable the Windows
service code.
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, "SquidNT" is the default
when the switch is not used.
So the install service syntax now 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 still made with -r command line switch plus the
appropriate -n switch.
The -k switch family must be used with the appropriate -n switch, so the
syntax now is:
squid -k command -n service-name, where service-name is the name specified
with -n options at service install time.
Actually, the main unresolved problem is the command line switches
unavailability when running as a Windows Service.
Guido
-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
Tel. : +39.011.610749
E-mail: serassio@interfree.it
serassio@libero.it
WWW: http://serassio.interfree.it
Received on Sun May 06 2001 - 03:50:01 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:59 MST