scgi_winservice - Woof! Windows service
The scgi_winservice.tcl script, located in the scripts subdirectory under the Woof! root, is used for installing and running Woof! as an SCGI server under Windows.
The general form of the command when invoked from the Woof! root directory is:
tclsh scripts/scgi_winservice.tcl ?OPTIONS? COMMAND
Details of each command are given below.
Installing Woof! as an Windows service
tclsh scripts/scgi_winservice.tcl ?-service SERVICENAME? ?-port PORT? ?-startup STARTMODE? install
Installs the Woof! SCGI server as a Windows service. Once installed, the
service can be managed like any other Windows service through the
net start and
net stop commands or through
the Windows service control manager user interface.
||Installs as the service
||Specifies the port number on which the service should listen for requests sent by the web server. Defaults to 9999.|
||Specifies how the service is to be
Uninstalling the Woof! Windows service
tclsh scripts/scgi_winservice.tcl ?-service SERVICENAME? uninstall
Uninstalls any Windows service. The
-service should be specified with the name of
the service to be uninstalled if it is different from the default
woofscgi. Note this command can actually
uninstall any Windows service (not just Woof!) so use with care.
Running as a Windows service
When called without any
the script will run as the Woof!
SCGI server service. This is intended to be called from the service
control manager and should not be called from the command line.
See the chapter SCGI on Windows for some additional information.