* In the openafs-client init script, don't assume that AFS is mounted on
/afs when unmounting it or killing processes with AFS files open.
Instead, parse the output from mount to find the AFS mount point.
/etc/openafs/cacheinfo if the file already exists rather than
overwriting them with the defaults. Thanks, Liam Healy.
(Closes: #580077)
+ * In the openafs-client init script, don't assume that AFS is mounted on
+ /afs when unmounting it or killing processes with AFS files open.
+ Instead, parse the output from mount to find the AFS mount point.
-- Russ Allbery <rra@debian.org> Tue, 04 May 2010 14:27:21 -0700
# normally called via kill_all_afs.
kill_afs() {
signal=$1
- pids=`/usr/bin/lsof -Fp /afs | sed 's/p//'`
+ mount=`mount | grep ^AFS | awk '{ print $3}'`
+ pids=`/usr/bin/lsof -Fp $mount | sed 's/p//'`
if [ -n "$pids" ] ; then
kill -$signal $pids > /dev/null 2>&1
sleep 1
$AFS_PRE_SHUTDOWN
echo -n "Stopping AFS services:"
if mount | grep -q '^AFS' ; then
- umount /afs
+ umount `mount | grep ^AFS | awk '{ print $3}'`
echo -n " afsd"
fi
if pidof /usr/sbin/afsd >/dev/null || pidof /sbin/afsd >/dev/null ; then