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:
2d478a3
)
Make sure the statd directory exist before trying to access the
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 11 Oct 2010 21:02:18 +0000
(08:02 +1100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 11 Oct 2010 21:02:18 +0000
(08:02 +1100)
"update trigger" file.
CQ
1020344
config/events.d/60.nfs
patch
|
blob
|
history
diff --git
a/config/events.d/60.nfs
b/config/events.d/60.nfs
index 60de41e51a1b9844dc3c66404619fa937aff7e07..cd5219aa5753c2e6dccaa21a86462840ed80d0fc 100755
(executable)
--- a/
config/events.d/60.nfs
+++ b/
config/events.d/60.nfs
@@
-25,6
+25,7
@@
case "$1" in
;;
startup)
ctdb_service_start
+ mkdir -p $CTDB_VARDIR/state/statd
touch $CTDB_VARDIR/state/statd/update-trigger
;;
@@
-107,6
+108,7
@@
case "$1" in
CURRENT_TIME=`date +"%s"`
expr "$CURRENT_TIME" ">" "(" "$LAST_UPDATE" "+" "60" ")" >/dev/null 2>/dev/null
[ $? = "0" ] && {
+ mkdir -p $CTDB_VARDIR/state/statd
touch $CTDB_VARDIR/state/statd/update-trigger
$CTDB_BASE/statd-callout updatelocal &
$CTDB_BASE/statd-callout updateremote &