I) Description:
---------------
	gnugksvc.exe installs/runs gnugk.exe as a service process in window 
	NT/2000/XP/2003 with windows service account priveleges, connects to 
	the gk's status port, logs messages/cdrs in the files specified. This
	complementary utility is provided for GNU Gatekeeper users/developers
	as is.Use at your own risk. 
	Copyright (c) Franz J Ehrengruber Merlin Aviation Systems Ltd.

II) Gnugk requirementsl and imitations:
---------------------------------------
	1) gnugk.exe version 2.0.6 or above, with the latest windows shutdown patches applied.
	2) gnugk.exe must be statically linked with openh323slib, ptlibs.lib, ptclib.lib
	3) gnugksvc.exe must be run on the local machine in the folder where gnugk resides.
	4) gnugksvc.exe must have access to the gk status port - see below:
	   
	   [GkStatus::Auth]
	   rule=explicit
	   127.0.0.1=allow


III) Commandline switches:
--------------------------
	-install [options [gatekeeper switches]]
	         -m Console mode ON/OFF        Default: off
	         -n gk ipaddress/DNS name      Default: localhost
	         -e gk port                    Default: 7000
	         -x Crd log file name          Default: Cdr.log
 	         -y Msg log file name          Default: Msg.log
	         -z gk binary file name        Default: gnugk.exe
	         -g [gk comand line switches]  Default: [-o Gktrace.log] (See gk documentation)

	-remove 
			    
IV) Sample command lines:
-------------------------

	1) Install - Console hidden:
	   gnugksvc.exe -install
	   see defaults above.

	2) Install - Console hidden - trace level 5
	   gnugksvc.exe -install -m off -n localhost -e 7000 -x Cdr.log -y Msg.log -z gnugk.exe -g [-ttttt -o Gktrace.log]


	3) Install - Console mode ON
	   gnugksvc.exe -install -m on -n localhost -e 7000 -x Cdr.log -y Msg.log -z gnugk.exe


	4) Install - Console mode ON - trace level 2 - debug output to console
	   gnugksvc.exe -install -m on -n localhost -e 7000 -x Cdr.log -y Msg.log -z gnugk.exe -g [-ttttt]


	5) Install - Console mode ON - trace level 2 - debug output to file
	   gnugksvc.exe -install -m on -n localhost -e 7000 -x Cdr.log -y Msg.log -z gnugk.exe -g [-tt -o Gktrace.log]


	6) Stop and Remove the service
           gnugksvc.exe -remove

# EOF Franz J Ehrengruber