Administrator

Configuring Apache Relay Server State Manager as a Service

Set up the State Manager process to run as a service on the Relay Server host.

Context

This task uses the dbsvc utility on the Web server host, which is installed from the Relay Server archive file, supplied on the SAP Mobile Platform Runtime installation media.

Procedure

  1. Open a command shell window, and set the current directory to the location of the dbsvc executable.
  2. Enter the following at the prompt.
    • Apache host (Linux)

      dbsvc -y -a <apache_user> -t rshost -w SMPRelayServer -q -qc -f /<apache_install>/modules/rs.config -os 100K -ot /tmp/rs.log

    Substitute parameter values shown here to match your configuration.

    This command configures the State Manager process (rshost) as a service.

  3. To start the State Manager service:
    • From a Linux command shell:
      1. Make sure the State Manager service runs under the same user credentials as the Apache service.
      2. Change the current directory to:
        • Apache host (Linux) /<apache_install>/modules/
      3. At the command prompt, enter:

        dbsvc -u SMPRelayServer

  4. To stop the State Manager service, enter the following at a command shell prompt: dbsvc -x SMPRelayServer
  5. To uninstall the State Manager service, enter the following at a command shell prompt: dbsvc -d SMPRelayServer