Run JSup as a service (Bozza) |
|
|
[JSup] can be installed as a [http://en.wikipedia.org/wiki/Windows_service|Windows service]. In this mode the given [JSup application|application] is run in [JSup execution modes|server-only mode] (no user interface).
This [JSup execution modes|execution mode] is useful for:
- running the [JSup domains|shared domain] of [JSup] on an unattended server (in a server-room for example): the graphic user interface will run (when needed) on [JSup Command line options#Run JSup as a client|remote clients].
- having the [JSup domains|shared domain] always running, even when you are not running the JSup graphic user interface. In this way the [JSup] service always stores [JSup Trend|trend data], [JSup Alarm history|archives alarms], [Invio email allarmi da JSup|sends alarm emails] (if requested) and so on. The [JSup Command line options#Run JSup as a client|JSup client] can be run when you need the view/edit something.
Service installation
To install JSup to run an [JSup application|application] as a service:
- Open a [http://en.wikipedia.org/wiki/Command_Prompt_%28Windows%29|Command prompt].
- Move to the directory where [JSup] is installed (normally "c:\Program files\JSup" or "c:\Programmi\JSup") with the [http://en.wikipedia.org/wiki/Cd_%28command%29|CD command].
- Type the command: JSupSrv -install <appArchive>
(where <appArchive> is the full path of the [Archive or publish JSup application|published archive] of the [JSup application].
The JSup service is installed with manual startup: you can change this behaviour (to make the service to start automatically on system startup) using the Windows Services management console:
- Control Panel / Administrative Tools / Services (for Windows XP).
- Select JSup service in the service list.
- Right click and select Properties.
- In the Startup type select Automatic.
- Click the Start button if you want to start the service now (and not at the next system restart).
- Click on the Ok button.
Note: The JSup service usually take about 30 seconds to starts.
|