git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e73bcd3
)
Sometimes external services will activate Samba in ctdb without doing hte proper...
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Fri, 26 Aug 2011 00:03:47 +0000
(10:03 +1000)
committer
Ronnie 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
patch
|
blob
|
history
diff --git
a/config/events.d/50.samba
b/config/events.d/50.samba
index 184fb2fdbc3034bda27e013d5890874d83afd0ad..03bed85082c451cf9f38d58f02b76575b91d6090 100755
(executable)
--- a/
config/events.d/50.samba
+++ b/
config/events.d/50.samba
@@
-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 ] || {