Sometimes external services will activate Samba in ctdb without doing hte proper...
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 26 Aug 2011 00:03:47 +0000 (10:03 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 26 Aug 2011 00:03:47 +0000 (10:03 +1000)
initialization and setup, which leads to the state directory never become created.

Workaround this configuration issue by always creating the direcotry for now

S1028573

config/events.d/50.samba

index 184fb2fdbc3034bda27e013d5890874d83afd0ad..03bed85082c451cf9f38d58f02b76575b91d6090 100755 (executable)
@@ -236,6 +236,9 @@ case "$1" in
        ;;
 
      monitor)
+       # create the state directory for samba
+       /bin/mkdir -p $CTDB_VARDIR/state/samba
+
        # Create a dummy file to track when we need to do periodic cleanup
        # of samba databases
        [ -f $CTDB_VARDIR/state/samba/periodic_cleanup ] || {