Make sure the statd directory exist before trying to access the
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 11 Oct 2010 21:02:18 +0000 (08:02 +1100)
committerRonnie 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

index 60de41e51a1b9844dc3c66404619fa937aff7e07..cd5219aa5753c2e6dccaa21a86462840ed80d0fc 100755 (executable)
@@ -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 &