Declaring the PMF_TAG and SYSLOG_TAG
Variables

All the method scripts (with the exception of Validate)
use pmfadm to launch (or stop) either the data service
or the monitor, passing the name of the resource. Each script defines a variable, PMF_TAG that can be passed to pmfadm to identify
either the data service or the monitor.

Likewise each method script uses the logger command
to log messages with the system log. Each script defines a variable, SYSLOG_TAG that can be passed to logger with
the -t option to identify the resource type, resource group,
and resource name of the resource for which the message is being logged.

All methods define SYSLOG_TAG in the same way, as
shown in the following sample. The dns_probe, dns_svc_start, dns_svc_stop, and dns_monitor_check methods define PMF_TAG as follows (the use of pmfadm and logger is from the dns_svc_stop method):

The dns_monitor_start, dns_monitor_stop, and dns_update, methods define PMF_TAG as follows (the use of pmfadm is from the dns_monitor_stop method):

#########################################################################
# MAIN
#########################################################################
PMF_TAG=$RESOURCE_NAME.monitor
SYSLOG_TAG=$RESOURCETYPE_NAME,$RESOURCEGROUP_NAME,$RESOURCE_NAME
...
# See if the monitor is running, and if so, kill it.
if pmfadm -q $PMF_TAG.monitor; then
pmfadm -s $PMF_TAG.monitor KILL