Prevent double-starting client on RHEL7
[openafs.git] / src / packaging / HP-UX / scripts / openafs.postremove
1 #!/bin/sh
2
3 echo "NOTE:    Executing configure script."
4 #######
5 #
6 #  (c) Copyright Hewlett-Packard Company 1994
7 #
8 ########
9
10     set -a
11     UTILS="/usr/lbin/sw/control_utils"
12     if [[ ! -f ${UTILS} ]]
13     then
14         echo "ERROR:   Cannot find ${UTILS}"
15         exit 1
16     fi
17     . ${UTILS}
18
19 ############################################################################
20 # Removing the OPENOAFS product means cleanup everything!
21
22 # Kill ruthlessly..
23
24 PROCS="bosserver fileserver volserver buserver ptserver kaserver vlserver \
25         upserver upclient"
26
27 for proc in $PROCS
28 do
29   kill_named_procs $proc SIGKILL
30 done
31
32
33 rm -fr /usr/vice
34 if [[ $? != 0 ]]
35   print "         Could not remove the /usr/vice directory, adding it to the"
36   print "         cleanup file"
37   print "/usr/vice" >> /var/adm/cleanupfile
38 fi
39 rm -fr /usr/afs
40 if [[ $? != 0 ]]
41   print "         Could not remove the /usr/afs directory, adding it to the"
42   print "         cleanup file"
43   print "/usr/afs" >> /var/adm/cleanupfile
44 fi
45        
46