Hi,
Today I committed the new source supporting Windows NT services to the
CygWin branch.
The core code is derived from the 2.3 Stable 4 native NT port, and seem to
be very stable.
To enable the service mode, use the --enable-win32-service configure option
After compiling, make install as usual, but before run it, you must make
the following steps:
1) Run a "squid -i" command.
2) Change the squid.conf files to reflect physical Windows paths instead
CygWin logical paths because the service runs as System Account and not in
a full CygWin environment, for the same reason, the cygwin1.dll file must
be in your SYSTEM path.
For example:
cache_access_log /usr/local/squid/logs/access.log
if your CygWin root is d:\cygwin, must be changed to
cache_access_log d:/cygwin/usr/local/squid/logs/access.log
3) Run a "squid -f config-file" command to set in Windows Registry the
location of config-file
For example:
squid -f d:/cygwin/usr/local/squid/etc/squid.conf
4) Run a "squid -z" command as usual if you need to create the cache
directories.
5) Start the SquidNT Services from Services Control Panel Applet.
Note:
Is possibile to compile Squid with --prefix=PREFIX and
--exec-prefix=EPREFIX configure options pointing to Windows physical paths,
so you don't need step 2 & 3, but in this manner you need to install Squid
manually.
A last comment on Squid command line switches:
I added two new Squid command line option:
-i : Install the SquidNT Service with automatic startup
-r: Remove the SquidNT Service
Working switches at the moment:
All -k family, -f (but sets config-files in Windows Registry), -z, -v, -h
-N is removed, because non-sense
The remaining command line switches at the moment don't work.
Guido
-
==================================================================
Serassio Guido
A.S.P. S.p.A.
Corso Matteotti,
51 10121 - Torino - ITALY
Tel. : +39.011.5717511 Fax. :
+39.011.535124
Email: gserassio@asp.it
WWW: http://www.asp.it
Received on Fri Apr 27 2001 - 16:06:05 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:50 MST