3.4.0 Matrix Server Administration Guide
Chapter 12: Configure Service Monitors 145
Copyright © 1999-2006 PolyServe, Inc. All rights reserved.
Scripts
Service monitors can optionally be configured with scripts that are run at
various points during matrix operation. The script types are as follows:
Recovery script. Runs after a monitor probe failure is detected, in an
attempt to restore the service.
Start script. Runs as a service is becoming active on a server.
Stop script. Runs as a service is becoming inactive on a server.
When a monitor is instantiated for a service (because the ClusterPulse
process is starting or the configuration has changed), Matrix Server
chooses the best server to make the service active. The Start script is run
on this server. On all other servers configured for the monitor, the Stop
script is run to ensure that the service is not active.
Start scripts must be robust enough to run when the service is already
started, without considering this to be an error. Similarly, Stop scripts
must be robust enough to run when the service is already stopped,