projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ccd905a
)
ganeti-noded: Create LOCK_DIR if missing
author
Guido Trotter
<ultrotter@google.com>
Wed, 11 Feb 2009 10:20:00 +0000
(10:20 +0000)
committer
Guido Trotter
<ultrotter@google.com>
Wed, 11 Feb 2009 10:20:00 +0000
(10:20 +0000)
We need this directory for locks, so if for any reason it's not there
we'll create it. The permissions are the standard /var/lock permissions.
Reviewed-by: iustinp
daemons/ganeti-noded
patch
|
blob
|
history
diff --git
a/daemons/ganeti-noded
b/daemons/ganeti-noded
index
b587ede
..
0337dca
100755
(executable)
--- a/
daemons/ganeti-noded
+++ b/
daemons/ganeti-noded
@@
-747,6
+747,7
@@
def EnsureRuntimeEnvironment():
"""
dirs = [(val, constants.RUN_DIRS_MODE) for val in constants.SUB_RUN_DIRS]
dirs.append((constants.LOG_OS_DIR, 0750))
+ dirs.append((constants.LOCK_DIR, 1777))
for dir_name, dir_mode in dirs:
if not os.path.exists(dir_name):
try: