int Ice::Service::main | ( | const StringSeq & | args, |
InitializationData | initData = {} ) |
The primary entry point for services.
This function examines args
for reserved options and takes the appropriate action. The reserved options are shown below.
Win32:
–service NAME
Unix:
–daemon [–nochdir] [–noclose]
If –service or –daemon are specified, the program runs as a service, otherwise the program runs as a regular foreground process. Any service-specific (and Ice-specific) options are stripped from args
(just as for Ice::initialize).
args | The command-line arguments. |
initData | Configuration data for the new communicator. |