mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Make sure the statd directory exist before trying to access the
"update trigger" file. CQ 1020344 (This used to be ctdb commit 171f98f6f7ce7d01f47c44043ad599702711b12d)
This commit is contained in:
parent
842d9aab4e
commit
0de79c12ba
@ -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 &
|
||||
|
Loading…
x
Reference in New Issue
Block a user