PmRtManager as service

The OS Windows service is a program that runs independently whether or not there is any logged user. It runs with the permissions of defined Windows user, it can be configured and controlled by standard Windows tools (Services.msc console). The service can be launched or stopped by the user (from command line or admin console), but this is only an instruction for action, the launch/stop itself is executed by the Windows system regardless if the user is logged in locally or remotely.

If the application manager PmRtManager runs as OS Windows service then the application launched by the manager behave as services. Although from the OS Windows point of view, these applications are not real services. But because these apps are launched by a real service PmRtManager, they run independently whether there is a logged user or not. These apps run under the same user and with the same permissions as the real service. But these apps are not listed among OS Windows registered services, their configuration and management is fully under control of the PmRtManager. This is the basic procedure of launching PROMOTIC applications (and other programs) as OS Windows services.

Caution! If the PROMOTIC application runs as service it should run invisibly as server without user interface. Visible application (local or remote client) should be another normal PROMOTIC application (not a service) or web client. In OS Windows XP it is possible to configure the PROMOTIC application as service that is also visible on the desktop of each localy logged Windows user. The application is running even after the user logs out and another user logs in. Since OS Windows 7 this mode is no longer available and the user interface of PROMOTIC application is not visible for local Windows user.


Installation, uninstallation and configuration of application manager service

The PmRtManager.exe program is a component of the PROMOTIC system located in \Tools\PmRtManager, but is not originally configured as OS Windows service. If it is needed to run the PmRtManager.exe as OS Windows service then it is necessary to execute the PmRtManager -i command. After the registration, the configuration, stopping and launching is managed by standard OS Windows tools. The program (service) can be controlled from the command line by parameters. The command line terminal must be launched with Administrator rights. Individual commands:
PmRtManager -i - Adds the OS Windows service for the PmRtManager program. The service will be configured in order to launch automatically on system boot.
PmRtManager -u - Removes the OS Windows service of the PmRtManager program.
PmRtManager -s - Launches the OS Windows service of the PmRtManager program.
PmRtManager -k - Stopps the OS Windows service of the PmRtManager program.
PmRtManager - Launches the PmRtManager program as a normal application, not as a service. Application icon appears in the OS Windows Sys Tray among icons on the right. This allows to use the PmRtManager as normal program and also the applications launched by the manager are running as normal programs.

The old procedure of launching the PROMOTIC application as service by using the two utilities (Instsrv.exe and Srvany.exe) is no longer recommended. There are many disadvantages of the old procedure compared to the new one (getting the utilities, complex configuration), especially if the PROMOTIC application was stopped (crashed) the service still considered the application as correctly running (there was no WatchDog functionality). These utilities are contained in the Windows Resource Kit that is available for download at the Microsoft web. The installation procedure itself is describerd here

© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice