/var/lib/pcp/testsuite/archives/mk.tzchange is in pcp-testsuite 4.0.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/sh
#
# Script to recreate the tzchange- series of archives
#
. ../common.rc # for $sudo, $tmp, $here and pcp.env
if make qa_timezone.so
then
:
else
echo "make qa_timezone.so failed ... I give up!"
exit 1
fi
$sudo $PCP_RC_DIR/pcp stop
[ -d $PCP_RUN_DIR ] && $sudo chmod 777 $PCP_RUN_DIR
for hr in 10 11 12
do
export PCPQA_TZ=EST-$hr
export LD_PRELOAD=`pwd`/qa_timezone.so
pmcd &
rm -f tzchange-$hr-*
for a in a b
do
echo "log mandatory on 200msec sample.drift" | pmlogger tzchange-$hr-$a -s 4
done
$sudo $PCP_RC_DIR/pcp stop
done
[ -d $PCP_RUN_DIR ] && $sudo chmod 755 $PCP_RUN_DIR
unset LD_PRELOAD
$sudo $PCP_RC_DIR/pcp start
|