summaryrefslogtreecommitdiffstats
path: root/extras/ganesha/ocf/ganesha_grace
diff options
context:
space:
mode:
Diffstat (limited to 'extras/ganesha/ocf/ganesha_grace')
-rw-r--r--extras/ganesha/ocf/ganesha_grace3
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/ganesha/ocf/ganesha_grace b/extras/ganesha/ocf/ganesha_grace
index 45819c9a619..397b0abdeab 100644
--- a/extras/ganesha/ocf/ganesha_grace
+++ b/extras/ganesha/ocf/ganesha_grace
@@ -94,7 +94,8 @@ ganesha_grace_start()
# of the ganesha.nfsds have died, triggering a floating IP
# address to move. Resource constraint location rules ensure
# that this is invoked before the floating IP is moved.
- if [ -d /proc/$(cat /var/run/ganesha.nfsd.pid) ]; then
+ if [ -e /var/run/ganesha.nfsd.pid -a \
+ -d /proc/$(cat /var/run/ganesha.nfsd.pid) ]; then
# my ganesha.nfsd is still running
# find out which one died?