This page describes how to run the IcePatch2 server.
On this page:
icepatch2serverOnce you have run icepatch2calc on the data directory, you can start the icepatch2server:
{zcode}
$ icepatch2server .
{zcode} |
The server expects the data directory as its single command-line argument. If you omit to specify the data directory, the server uses the setting of the IcePatch2.Directory property to determine the data directory.
The server has two different sets of endpoints, one for regular operations, and one for administration:
IcePatch2.EndpointsIcePatch2.Admin.EndpointsIcePatch2::Admin interface:
{zcode:slice}
interface Admin {
void shutdown();
};
{zcode} |
IcePatch2/admin. You can change the category of this identity by setting the property IcePatch2.InstanceName.
shutdown operation shuts down the server. Note that any client with access to the Admin interface's port can stop the server. Typically, you would set this property to a port that is not accessible to potentially hostile clients.
icepatch2server Command Line OptionsRegardless of whether you run the server under Windows or a Unix-like operating system, it provides the following options:
-h, --help-v, --versionAdditional command line options are supported, including those that allow the server to run as a Windows service or Unix daemon.