3 # Check that pmwebd advertises its presence using avahi
5 # Copyright (c) 2014-2016 Red Hat.
9 echo "QA output created by $seq"
15 [ -x $PCP_RC_DIR/pmwebd
] || _notrun
"PCP web services not installed"
16 PCP_PMWEBDOPTIONS_PATH
=$PCP_SYSCONF_DIR/pmwebd
/pmwebd.options
20 # ensure we do not leave local-only settings enabled
21 _restore_config
$PCP_PMWEBDOPTIONS_PATH
25 status
=1 # failure is the default!
26 $sudo rm -rf $tmp.
* $seq.full
27 trap "_cleanup; exit \$status" 0 1 2 3 15
29 # real QA test starts here
31 _save_config
$PCP_PMWEBDOPTIONS_PATH
34 _wait_for_pmwebd_logfile
$PCP_LOG_DIR/pmwebd
/pmwebd.log
44323
37 # check -S (service discovery disabling) option works
38 cp $PCP_PMWEBDOPTIONS_PATH $tmp.conf
39 echo 'OPTIONS="$OPTIONS -S"' >> $tmp.conf
40 $sudo mv $tmp.conf
$PCP_PMWEBDOPTIONS_PATH
43 _wait_for_pmwebd_logfile
$PCP_LOG_DIR/pmwebd
/pmwebd.log
44323
44 avahi_verify
"Verify $service avahi discovery disabling option"