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/{
37 -e 's/ INADDR_ANY/ 0x0/g' \
41 signal
=$PCP_BINADM_DIR/pmsignal
55 $signal -s TERM
$my_pmcd_pid
58 echo "Restart and ping pmcd ..."
59 $sudo $PCP_RC_DIR/pcp restart | _filter_pcp_start
62 pmprobe pmcd.control.debug
68 trap "cleanup; exit \$status" 0 1 2 3 15
70 # real QA test starts here
71 $sudo $PCP_RC_DIR/pcp stop | _filter_pcp_stop
73 # Note: start pmcd with -f so that its PID stays the same (no daemon)
75 export PMCD_SOCKET
=$tmp/pmcd.socket
76 $PCP_PMCD_PROG -f -x err1
&
81 echo "Checking for startup errors ..."
82 [ -f err1
] && _filter_err
<err1
84 # Try to start another pmcd. This should fail because the socket is already in
85 # use. Make sure that there are no changes to the log file
89 cp pmcd.log pmcd.log.$$
91 echo "No pmcd.log, pmcd failed to start!"
96 echo "Trying to start another PMCD over the top of the first one."
97 echo "Expect \"bind: Address already in use\"...:"
98 $PCP_PMCD_PROG -f -x err2
2>&1 | _filter_err
&
101 echo "Checking for startup errors ..."
102 [ -f err2
] && _filter_err
<err2
104 echo "Checking that log hasn't changed ..."
105 diff pmcd.log pmcd.log.$$