User Guide

120 Chapter 6 Configuring Verity K2 Server
Starting K2 Server
The ColdFusion installer places the K2 files into the following directories:
Windows platforms:
cfusion\bin
UNIX: opt/coldfusion/verity/<platform>/bin
The K2 Server is started from the command line or from a script in the Unix
environment and can be integrated as a service within the Windows NT
environment. The server is designed to run with a minimum of intervention. Most
configuration parameters are set in a configuration file, which can be given a
user-assigned name (the default file name is
k2server.ini).
Command-line arguments include the name of the configuration file, the TCP port
for incoming connections and the verbosity level for informational messages. The K2
Server has a warm restart capability, designed to keep the servers well-known TCP
port open in case of a crash and to allow changes in the configuration file to be
initialized without killing the primary server process.
The K2 Server is started by the using the following command:
k2server [<option1> <option2> ...]
The options available for this command are summarized in the following table:
Keyword Permitted values Function
-port <value> Positive integer Identifies the TCP port number for use by
the K2 Acceptor. To run the K2 Server as
an NT service, use the -ntservice keyword
and do not specify a port number using the
-port keyword.
-iniFile <filename> Any valid filename Identifies the filename to use as
theconfiguration file for this instance of the
K2 Server.
-verbose <value> 0 = status
1 = informational
2 = verbose
3 = debug
Determines the amount of information
contained in the K2 Server system
messages.
-iniEmit <filename> Any valid filename Creates a sample configuration file.
-ntService <value> 1 = load as NT service
0 = remove as NT service
Used to load or remove the K2 Server as
an NT service. When set to 1, the server is
loaded as an NT service. When set to 0,
the server is removed as an NT service.
Note: To run the K2 Server as an NT
service, do not specify a port number
using the -port keyword.
Not applicable to non-Windows platforms.