Configuring Relay Server to Run as a Windows Service

If you installed relay server on an IIS host, Sybase recommends that you set up the relay server as a Windows service to ensure that starts with the host.

  1. At the command line, enter the following command, substituting all parameter values to match your configuration:
    dbsvc -as -s auto -w SUPRelayServer "C:\inetpub\wwwroot\ias_relay_server\server\rshost.exe" -q -qc -f c:\inetpub\wwwroot\ias_relay_server\server\rs.config -o c:\Sybase\logs\rs.log

    This command configures the relay server host process (rshost.exe) as a Windows service. By default, the dbsvc utility is installed in <UnwiredPlatform_InstallDir>\Servers\SQLAnywhere11\BIN32\.

    Note: Ensure that the path specified with the -o option exists; otherwise dbsvc fails.
  2. Start or stop the rshost service.

    From the Windows Services Control Panel:

    • Locate the SQL Anywhere - SUPRelayServer service.
    • To start or stop the service, right-click the service and choose the corresponding command.

    From the command prompt:

    • Change to C:\inetpubs\wwwroot\ias_relay_server\Server.
    • To start the service, enter dbsvc.exe -u SUPRelayServer.
    • To stop the service, enter dbsvc.exe -x SUPRelayServer.
    • To uninstall the service, enter dbsvc.exe -d SUPRelayServer.
    • To update the rshost with the latest relay server configuration, enter rshost.exe –f rs.config –u.