Running the Endeca Server as a Windows service

You can create a Windows service for running the Endeca Server in service mode.

The Windows SC tool (sc.exe) communicates with the Windows Service Controller and installed Windows services. The SC tool allows you to create a Windows service for the Endeca Server. You can then start and stop the Endeca Server from the Windows Services utility, as well as make configuration changes (such as configuring the service to automatically restart in case of a failure). Keep in mind that the SC tool (sc.exe) is case-insensitive.

Note: The Endeca Cluster Coordinator service cannot be run as a Windows service. This means that if you are using the Endeca Clustering feature and run the Endeca Server as a Windows service, you should closely monitor the state of the Cluster Coordinator service. The reason is that if the Endeca Server service crashes, the Windows Service Controller will automatically restart it. However, if the Cluster Coordinator service crashes, then it is not automatically restarted. This can lead to a situation where the Dgraph processes are running but the Cluster Coordinator service is not.
For more information, refer to these Web pages on the Microsoft site:

Windows Service Wrapper file

The service-wrapper-7.4.exe file is shipped in the endeca-server directory. This is the file that you will use with the SC tool to create the Windows service for the Endeca Server, as described in the following topics.