|
NetPhantom Service Wrapper
Introduction As part of the NetPhantom server suit, a service wrapper is now included. The service wrapper makes it possible to run several programs as a single Windows NT Service. This makes it possible to for example run the NetPhantom License manager and a NetPhantom server as sub-processes in a single Windows NT Service. This service wrapper can also be run as a normal command line program, and will then work more as a process wrapper, that handles several sub processes. This makes it possible to use it in UNIX/Linux environment to handle several processes. The service/process wrapper uses a configuration file that makes it possible to specify the startup command line for each sub process, and different command lines for each return code from the process when it is closing.
The program that installs, or uninstalls, the Service Wrapper, is the NetPhantomWindowsNTService executable. In the NetPhantom installation root directory, run the command below as an administrator: NetPhantomWindowsNTService parameters This program can take the following parameters:
Running the Process Wrapper The Process Wrapper is started from the command line as a normal application, running under Sun's JVM, with the following command: java [-options [-Xrs]] windowsnt.NetPhantomService [-params] where -options [-Xrs] are the normal options for Sun's JVM. and where -params are the following parameters, that can be passed on to the NetPhantomService.
The Configuration File The configuration file that is used by the service wrapper is named service.ini. It consists of several sections, first a base section, and then a separate section for each process. The base section must at least have item that specifies the number of processes that the service wrapper should handle. This item is named processcount. There is also an optional item named originator, that can be used to specify the name that will be used as the source in the Windows Event Log. If the originator is unspecified, the default "NetPhantom Service" will be used.
[base]
For each process there must be a section named processNNN where NNN is the number of the process. The sections must at least have an item named cmdline, but there are also several optional items that can be used. The items that can be used for each process section are:
Below follows a short description of these items. cmdline=cmd
rc(n)=cmd
logmessage(n)=cmd
|