Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / packaging / HP-UX / scripts / openafs-clnt.checkinstall
CommitLineData
805e021f
CE
1#!/bin/sh
2##############
3# Product: OPENAFS
4# Fileset: OPENAFS.OPENAFS-CLNT
5# checkinstall
6# @(#) $Revision$
7##############
8#
9# (c) Copyright 2003
10#
11########
12
13# The global variables SUCCESS, FAILURE, WARNING, EXCLUDE, PATH, ROOT,
14# SW_CTL_SCRIPT_NAME, _pf, PRODUCT, and FILESET are all set by control_utils.
15
16set -a
17UTILS="/usr/lbin/sw/control_utils"
18if [[ ! -f ${UTILS} ]]
19then
20 echo "ERROR: Cannot find ${UTILS}"
21 exit 1
22fi
23. ${UTILS}
24
25exitval=$SUCCESS # Anticipate success
26
27############################################################################
28
29#
30# Check for running afsd processes, exit with a WARNING if running..
31# and SUCCESS if not running.
32#
33
34ps -ef | grep -v grep | grep afsd
35
36if [[ $? = 0 ]]; then
37 print "WARNING: afsd processes are running..."
38 print "The preinstall script will attempt to shut down afsd processes"
39 exitval=$WARNING
40else
41 print "NOTE: No afsd processes are running."
42 exitval=$SUCCESS
43fi
44
45exit $exitval