Sun Cluster Data Services Developer's Guide for Solaris OS

Providing Process Management

The RMAPI and the DSDL provide process management facilities to implement resource monitors and resource control callbacks. The RMAPI defines the following facilities:

Process Monitor Facility (PMF): pmfadm and rpc.pmfd

Provides a means of monitoring processes and their descendants, and restarting processes if they die. The facility consists of the pmfadm command for starting and controlling monitored processes, and the rpc.pmfd daemon.

The DSDL provides a set of functions (preceded by the name scds_pmf_) to implement the PMF functionality. See PMF Functions for an overview of the DSDL PMF functionality and for a list of the individual functions.

The pmfadm(1M) and rpc.pmfd(1M) man pages describe this command and daemon in more detail.

halockrun

A program for running a child program while holding a file lock. This command is convenient to use in shell scripts.

The halockrun(1M) man page describes this command in more detail.

hatimerun

A program for running a child program under timeout control. This command is convenient to use in shell scripts.

The DSDL provides the scds_hatimerun() function to implement the features of the hatimerun command.

The hatimerun(1M) man page describes this command in more detail.