The respawn directive is used to specify a program to run and monitor while it runs. If this program exits with anything other than exit code 100, it will be automatically restarted. The first parameter is the user id to run the program under, and the second parameter is the program to run. Subsequent parameters will be given to the program as arguments.
At the current time, the program most people will be interested in running this way is ipfail.
A sample respawn directive is shown below:
respawn hacluster /usr/lib/heartbeat/ipfail
SECURITY NOTE: It is a bad security practice to run programs from Heartbeat as root unless they are prepared to change their user ids once they're started. None of the programs which come with Heartbeat to be used with respawn should be run as root. Do not run them as root or. If you ignore this advice, just remember that BadThingsMayHappen, and don't blame us.