5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
19 ln $seq.out.ipv6
$seq.out ||
exit 1
21 ln $seq.out.nonipv6
$seq.out ||
exit 1
28 -e 's/ __pmBind: / bind: /g' \
29 -e 's/may already be running/is already running/g' \
30 -e '/Log for pmcd/,/INADDR_ANY/c\
31 ... boring stuff deleted' \
32 -e '/ok FD 44321 ipv6 INADDR_ANY/d' \
33 -e '/OpenRequestSocket.*unix.*bind: Address already in use/,+1 d' \
34 -e 's/ INADDR_ANY/ 0x0/g'
37 signal
=$PCP_BINADM_DIR/pmsignal
51 $signal -s TERM
$my_pmcd_pid
54 echo "Restart and ping pmcd ..."
55 $sudo $PCP_RC_DIR/pcp restart | _filter_pcp_start
58 pmprobe pmcd.control.debug
64 trap "cleanup; exit \$status" 0 1 2 3 15
66 # real QA test starts here
67 $sudo $PCP_RC_DIR/pcp stop | _filter_pcp_stop
69 # Note: start pmcd with -f so that its PID stays the same (no daemon)
71 export PMCD_SOCKET
=$tmp/pmcd.socket
72 $PCP_PMCD_PROG -f -x err1
&
77 echo "Checking for startup errors ..."
78 [ -f err1
] && _filter_err
<err1
80 # Try to start another pmcd. This should fail because the socket is already in
81 # use. Make sure that there are no changes to the log file
85 cp pmcd.log pmcd.log.$$
87 echo "No pmcd.log, pmcd failed to start!"
92 echo "Trying to start another PMCD over the top of the first one."
93 echo "Expect \"bind: Address already in use\"...:"
94 $PCP_PMCD_PROG -f -x err2
2>&1 | _filter_err
&
97 echo "Checking for startup errors ..."
98 [ -f err2
] && _filter_err
<err2
100 echo "Checking that log hasn't changed ..."
101 diff pmcd.log pmcd.log.$$