The branch, 1.2-nodeflags has been updated
       via  0c075ec92b0c9021b799b1111d38ab85f3d50675 (commit)
      from  7c988b9145e9ba885152380881e8bde0f212633b (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=1.2-nodeflags


- Log -----------------------------------------------------------------
commit 0c075ec92b0c9021b799b1111d38ab85f3d50675
Author: Ronnie Sahlberg <ronniesahlb...@gmail.com>
Date:   Tue Oct 12 08:02:18 2010 +1100

    Make sure the statd directory exist before trying to access the
    "update trigger" file.
    
    CQ 1020344

-----------------------------------------------------------------------

Summary of changes:
 config/events.d/60.nfs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/events.d/60.nfs b/config/events.d/60.nfs
index 60de41e..cd5219a 100755
--- 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 &


-- 
CTDB repository

Reply via email to