Monitor_start 方法获取 Rt_basedir 特性的值以构造 PROBE 程序的完整路径名。 此方法将使用 pmfadm (-n -1, -t -1) 的无限重试选项启动探测程序,这意味着如果该探测程序无法启动,PMF 将在无限长的时间间隔内尝试无限多次地启动该程序。
# Find where the probe program resides by obtaining the value of the # RT_BASEDIR property of the resource. RT_BASEDIR=`scha_resource_get -O RT_BASEDIR -R $RESOURCE_NAME -G \ $RESOURCEGROUP_NAME` # Start the probe for the data service under PMF. Use the infinite retries # option to start the probe. Pass the resource name, type, and group to the # probe program. pmfadm -c $RESOURCE_NAME.monitor -n -1 -t -1 \ $RT_BASEDIR/dns_probe -R $RESOURCE_NAME -G $RESOURCEGROUP_NAME \ -T $RESOURCETYPE_NAME |