3 ########################################################################
7 # is supposed to clean up after a "hanging" QA
9 # 1) see if there is a lockfile
11 # 1a) kill the process of the lockfile and if possible it's children
14 # 3) clean up old tmp files
16 ########################################################################
29 echo "Can't write to tmp directory $TMP - exiting"
30 echo "Can't write to tmp directory $TMP - exiting" >&2
34 ########################### Ps #########################################
35 # platform specific ps
36 ########################################################################
39 if [ `uname -s` = "SunOS" ]
56 kill -9 $1 2>/dev
/null
59 ########################### kill_by_name ################################
60 # like killall, only without permissionproblems, kills the process whose
61 # name is given as parameter
62 ########################################################################
67 for PID
in `Ps | grep "$1" | grep -v grep | \
68 sed -e "s/^[ ]*//g" -e "s/[ ].*//"`
98 echo "Another Windows problem... If you have not already done so"
99 echo "after this script completes, please reboot, and log in as"
100 echo "user svbld again"
111 for w
in tommy booboo kentuckyderby galileo shame axilla columbus \
112 smarch charm hp64 biggayal orville kwyjibo hbombaix raven \
113 jordan hornet phaedrus louie box dbldog huey washer dryer \
114 shabadoo trex bummer compaqtor jellyfish sjsu
117 ping $w && rsh $w '/u/sonmi/bin/qaclean'
122 rsh $1 '/u/sonmi/bin/qaclean'
130 if [ -f ${TMP}/nssqa.
* ]
132 echo "nssqa seems to be running ${TMP}/nssqa.*"
134 NSSQA_PID
=`ls ${TMP}/nssqa.* | sed -e 's/[^.]*\.//'`
140 ls -l ${TMP}/nsstmp.
*
141 rm ${TMP}/nsstmp.
* 2>/dev
/null
142 rm ${TMP}/certutilout.
* 2>/dev
/null