Manage service dependencies

In some circumstances you may want to run more than one executable as a service, and these executables may depend on each other. For example, you may want to run a server and a SQL Remote Message Agent to assist in replication. Services must start in the correct order. If a SQL Remote Message Agent service starts before the server has started, it fails because it cannot find the server. You can prevent these problems by using service groups, which you manage from Sybase Central. With Sybase Central you can specify dependencies for a service. For example:

  • You can ensure that at least one member of each of a list of service groups has started before the current service.

  • You can ensure that any number of services have started before the current service. For example, you may want to ensure that a particular network server has started before a SQL Remote Message Agent that is to run against that server starts.

 Add a service or group to a list of dependencies (Sybase Central)
  1. From the Context list, click SQL Anywhere 12.

  2. In the right pane, click the Services tab.

  3. Select the service, and then click File » Properties.

  4. Click the Dependencies tab.

  5. Click Add Services or Add Service Groups to add a service or group to the list of dependencies.

  6. Select one of the services or groups from the list.

  7. Click OK to add the service or group to the list of dependencies.