Configuring Service Startup and Shutdown Order

You can easily configure the startup and shutdown order for services owned by any RSM using the Service Group Editor. The editor can be used to start a subset of services belonging to an RSM, and then wait for them to reach a steady state before starting the rest of the services. Alternately you can stop a subset of services belonging to an RSM, and then wait for them to reach a steady state before stopping the rest of the services.

Service startup and shutdown order is stored in the Service Definitions file (SvcDef.Rsx), found in the CygNet\RSM\ service directory.

Service Group Editor

Click the thumbnail to see
an example Service Group Editor

To Change Service Startup and Shutdown Order

  1. Using CygNet Explorer, open the Remote Service Manager (RSM), which must be running.
  2. Right-click in the white space of the RSM service pane and select Configure Service Groups from the context menu to open the Service Group Editor. The editor displays the services owned by the RSM, which are listed in a series of Service Groups. Each group of services will startup (or stopped) after the previous group has started (or stopped).
  3. To create a new service group, select one or more services, right-click and select Create group n with selected service(s). A new service group will be created and the selected services will be moved to that group.
  4. To move one or more services to another service group, select the services, right-click and select Move to group n where n is the group you want to move the selected services.
  5. Specify a Group name for each service group.
  6. Specify the Max wait time (seconds): for each service group. This value indicates the maximum amount of time in seconds you are willing to wait for the services in that group to startup or shutdown before moving on to the next group. The default value is 30 seconds.

Startup and Shutdown Notes

Once configured the services will start or stop according to the setup specified in the Service Group Editor:

SvcDef.Rsx

SvcDef.Rsx is the RSM database file, also called the Service Definitions file. This XML file lists the services in the order they will be started or stopped by the RSM. If necessary, you can edit this file using a text or XML editor to change the order, although best practice recommends using the configuration method described above.

Automatic Shutdown of Services

You may find it useful to have a means of shutting down one or more CygNet services without requiring user intervention outside a failover scenario. Each of the following methods requires an external trigger to initiate the shutdown, such as a command from a battery backup’s control software or a failover script.

Perform one of the following options to initiate an automatic shutdown of CygNet services: