4.1.0 HP PolyServe Software for Microsoft SQL Server administration guide (T5392-96074, October 2010)

Script Pathnames: The monitor can optionally be configured with the following types
of scripts:
Recovery script. Runs after a monitor probe failure is detected, in an attempt to
restore the service.
Post Start script. Runs after the service has become active on a server. For example,
you might want a Post Start script to start a Web server.
Pre Stop script. Runs after the service has become inactive on a server.
When a monitor is instantiated, the ClusterPulse process chooses the best server to
make the service active. The Post Start script is run on this server. On all other servers
configured for the monitor, the Pre Stop script is run to ensure that the service is not
active.
Post Start scripts must be robust enough to run when the service is already started,
without considering this to be an error. Similarly, Pre Stop scripts must be robust
enough to run when the service is already stopped, without considering this to be
an error. In both of these cases, the script should exit with a zero exit status.
This behavior is necessary because the Post Start and Pre Stop scripts are run to
establish the desired start/stop activity, even though the service may actually have
been started by something other than HP PolyServe Software. The Post Start and Pre
HP PolyServe Software for Microsoft SQL Server 4.1 administration guide 83