Show TOC

Configuring ESP Server Processes to Run as Windows ServicesLocate this document in the navigation structure

If you are running SAP Event Stream Processor in Windows, you can configure server processes to run as Windows services to eliminate the need to restart the processes each time you log into Windows. This also facilitates automatic restart in situations where the Windows machine is rebooted.

Prerequisites

  • Download instsrv.exe and srvany.exe from http://www.microsoft.com/en-us/download/details.aspx?id=17657Information published on non-SAP site.
  • To ensure you start the executable or batch file from the correct location, edit the corresponding file by adding cd %STREAMING_HOME%\<file-name> to the beginning of the file. For example, for the Web Services Provider: cd %STREAMING_HOME%\wsp.bat.
  • Open a command prompt window using the Run as administrator option.

Context

The following instructions use the Web Services Provider (WSP) as an example, but you can apply the same steps to other executables such as streamingclusternode.exe and dbsrv16.exe (which runs the cluster database), or any other server process you want to run as a service.

Only perform this procedure if you are an administrator and have experience with advanced Windows functionality such as editing the registry.

Procedure

  1. In the command prompt window, enter the following to create the Windows service:
    instsrv.exe <service-name> srvany.exe

    where <service-name> is the name you assign to the Windows service you are adding. These instructions use the service name Streaming_WSP as an example.

  2. Open the registry editor to add the service.
    1. Within the registry editor, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Streaming_WSP.
    2. Right-click Streaming_WSP and select New > Key.
    3. Name the new key Parameters.
    4. Right-click the new Parameters key and select New > String Value.
    5. Enter Application as the new string value.
    6. Double-click the new Application entry, and for the Value Data, add the full path to the batch file or executable you want to run as a service. For example, c:\ESP51-SP09\ESP-5_1\wsp\wsp.bat.
    7. Close the registry editor.
  3. From the command prompt window, enter the following to start the service:

    sc start <service-name>, for example, sc start Streaming_WSP.

    In the console, the status will initially appear as "start pending."

  4. To verify that the service is running, open the Services view from your Windows control panel and view the service's status.