git.samba.org
/
metze
/
ctdb
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
392f243
)
Change the test if NFS is working to use "service nfs status"
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 8 Mar 2010 18:15:33 +0000
(
05:15
+1100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 8 Mar 2010 18:15:33 +0000
(
05:15
+1100)
instead of rpcinfo to the nfs program.
config/events.d/60.nfs
patch
|
blob
|
history
diff --git
a/config/events.d/60.nfs
b/config/events.d/60.nfs
index 2115d46e647d840d35715f51c81fcc16036c95e2..61c8081a853dcb70cc80d8116c2cc2a5b1867c53 100755
(executable)
--- a/
config/events.d/60.nfs
+++ b/
config/events.d/60.nfs
@@
-75,10
+75,10
@@
case "$1" in
echo "ERROR: STATD is not responding. Trying to restart it. [rpc.statd $RPCSTATDOPTS]"
}
-
- # check that NFS responds to rpc requests
- [ "$CTDB_NFS_SKIP_KNFSD_ALIVE_CHECK" = "yes" ] || {
- ctdb_check_rpc "NFS" 100003 3
+ # check that NFS is running
+ service nfs status 2>/dev/null >/dev/null || {
+ echo NFS is not running
+ exit 1
}
# and that its directories are available