Sun Cluster 3.1 Data Services Developer's Guide

The xfnts_monitor_stop Method

Because the xfnts_monitor_start method uses scds_pmf_start to start the monitor daemon under PMF, xfnts_monitor_stop uses scds_pmf_stop to stop the monitor daemon.

Note –

The first call in xfnts_monitor_stop is to scds_initialize, which performs some necessary house-keeping functions (see The scds_initialize Call and the scds_initialize(3HA) man page for details.

The xfnts_monitor_stop method calls the mon_stop method, which is defined in xfnts.c as follows.

Example 8–13

      "Calling scds_pmf_stop method");

   err = scds_pmf_stop(scds_handle, SCDS_PMF_TYPE_MON,

   if (err != SCHA_ERR_NOERR) {
          "Failed to stop fault monitor.");
      return (1);

       "Stopped the fault monitor.");

   return (SCHA_ERR_NOERR); /* Successfully stopped monitor */

Note the following about the call in svc_mon_stop to the scds_pmf_stop function.

Note –

Before it exits, the xfnts_monitor_stop method calls scds_close to reclaim resources allocated by scds_initialize. See The scds_initialize Call and the scds_close(3HA) man page for details.