RGM 呼叫 Update 方法來通知執行中資源其屬性已經變更。 可以為 xfnts 資料服務變更的唯一屬性關係到故障監視器。 因此,每當變更屬性時,xfnts_update 方法都將呼叫 scds_pmf_restart_fm() 來重新啟動故障監視器。
* check if the Fault monitor is already running and if so stop * and restart it. The second parameter to scds_pmf_restart_fm() * uniquely identifies the instance of the fault monitor that needs * to be restarted. */ scds_syslog(LOG_INFO, "Restarting the fault monitor."); result = scds_pmf_restart_fm(scds_handle, 0); if (result != SCHA_ERR_NOERR) { scds_syslog(LOG_ERR, "Failed to restart fault monitor."); /* Free up all the memory allocated by scds_initialize */ scds_close(&scds_handle); return (1); } scds_syslog(LOG_INFO, "Completed successfully.");
scds_pmf_restart_fm() 的第二個參數唯一識別要重新啟動的故障監視器實例 (如果有多個實例)。 範例中的值 0 指示僅有一個故障監視器實例。