How to run EMS instances as Windows Services
In a Windows environment it is possible to run EMS instances has Windows Services.
This article explains how to install and uninstall an EMS instance as a Windows service.
Installation of an EMS instance as a Windows Service
To install an EMS instance as a Windows service do the following:
- Start a command window with the ‘run as Administrator’ option
- Go to the <TIBCO_HOME>\ems\8.6\bin folder
- Launch the following command :
emsntsrg /i tibemsd <TIBCO_HOME>\ems\8.6\bin <TIBCO_HOME>\ems\8.6\bin “-config <CONFIG_HOME>\tibco\cfgmgmt\ems\data\tibemsd.conf” <LABEL>
For example:
emsntsrg /i tibemsd C:\tibco670\ems\8.6\bin C:\tibco670\ems\8.6\bin “-config C:\tibco670\config\tibco\cfgmgmt\ems\data\tibemsd.conf” DATA-7222
The parameter <LABEL> is important to be able to differentiate the different EMS instance Services installed on the machine.
Uninstallation of an EMS instance Windows Service
To uninstall an EMS instance as a Windows service do the following:
- Start a command window with the ‘run as Administrator’ option
- Go to the <TIBCO_HOME>\ems\8.6\bin folder
- Launch the following command :
emsntsrg /r tibemsd <LABEL>
For example:
emsntsrg /r tibemsd DATA-7222
EMS Windows service configuration
You may configure the EMS service for delayed start (this is recommended).
You may change the account used to run the EMS Service to a service account.
You may also configure the EMS Service for automatic restart in case of failure.
Reference elements
https://docs.tibco.com/pub/ems/8.6.0/doc/html/GUID-A3B31012-F10A-47BC-9BA3-5676F7DCE350.html
Important point
The tool mentioned above (‘emsntsrg’) is no longer provided with EMS 10.X.
The solutions you can use are the following :
. Use the ‘emsntsrg’ tool from an EMS 8.X installation
. Use the ‘prunsrv’ tool from the apache commons package, it is available here :
https://commons.apache.org/proper/commons-daemon/download_daemon.cgi
. Use the ‘nssm’ graphical tool that is available here :
https://nssm.cc/download