Navigation: Program use > Program options > Service mode on Windows 2000+ >
Windows 2000+ services let you:
•Control service on local and remote computers, including remote computers with Windows 2000+ system.
•Setup actions on emergency service restore in case of failure, for example, auto service or computer restart (only on computers with Windows 2000 or later).
•Create for services other names and descriptions, to find them easier (only on computers with system Windows 2000 or later).
•Run service before user login (password input).
•Service can be configured on automatic start after operation system load.
Note 1: you must be logged in as an administrator to change the configuration or control the service in any way (start, stop, pause, continue).
Note 2: On Windows Vista and later you should start the program with elevated administrator privileges.
If you want to use the program as a service application, then, please, go to the "Options -> Program options -> Windows service" tab (fig. 6.4.1), then enable the "Use program as a service" checkbox. Later, please, specify the start-up type of the service. There are the following variants:
Fig. 6.4.1 Service settings
|1.||Automatic - the service starts automatically with Windows, before user login.|
|2.||Manual - you can start the service application from the "Services" control panel (fig. 6.4.1).|
|3.||Disabled - the service is disabled, and does not start at all.|
If you want to change the program settings while the program works in the service mode, you can start a second instance of the program on your desktop, make the necessary changes, and restart the service with the new settings.
Old Windows versions (before Windows Vista) allows you to use the service in the interactive mode. In this case, the program places an icon in the system area (fig. 6.4.2).
Fig. 6.4.2 Service icon in Systray
If the service should write data a database or use another service on your computer, they should be started before Serial Printer Logger. You can configure a list of these services on the "Program depends on services" tab (fig. 6.4.3).
Fig. 6.4.3 Service settings #2
Sometimes, you may need to start Serial Printer Logger before starting other services. In this case, you should:
•Switch the start mode of a target service to "Manual."
•Start Serial Printer Logger.
•Select the necessary service on the "Depending services" tab.
•Select the mode when the logger will start the selected service.
•Restart Serial Printer Logger.
After you configured Serial Printer Logger to work in the service mode, you need to restart a computer or start the service manually from the "Services" control panel (fig. 6.4.4).
Fig. 6.4.4 Manual service run (in Windows 2000)
When the service is running, two processes should appear in the Task Manager: sprnloggersrv.exe and sprnlogger.exe (fig. 6.4.5). The 'sprnloggersrv.exe' application implements an interface between the service manager and the Serial Printer Logger software. Unlike srvany.exe utility, our service stops safely.
Fig. 6.4.5 Process list
If you want to configure the program as a service, then you must be logged with administrator rights. The service application can be controlled, stopped, or removed with the help of a command-line. Run sprnloggersrv.exe with the following parameters:
•/? - a short help.
•/I - install service for starting in then manual mode.
•/A - install service for starting in the automatic mode.
•/D - install service in the disabled state.
•/R - remove service from the computer.