summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder
diff options
context:
space:
mode:
authorVu Tran <vu.tran@windriver.com>2014-05-14 16:08:41 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-05-23 14:41:26 -0400
commit78b15bf8215becf54dbf723aa3d65e7744645aca (patch)
tree12ccda74e555afdc9f975f248e999f29a536208b /meta-openstack/recipes-devtools/python/python-cinder
parenta0346396ad9dd5be8dc4a283ebcdfd8f79b6ace0 (diff)
downloadmeta-cloud-services-78b15bf8215becf54dbf723aa3d65e7744645aca.tar.gz
cinder: ensure log-dir is set correctly
Make sure all Cinder services have the right setting for log_dir in the init script as well as in the config setting in .conf file as we shouldn't only count on our init script launch to get logging right. Signed-off-by: Vu Tran <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder/cinder-volume3
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder/cinder.conf2
2 files changed, 3 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume b/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume
index 2c9334e..aec6ab0 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume
+++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume
@@ -35,7 +35,8 @@ start()
35 echo -n "Starting $DESC..." 35 echo -n "Starting $DESC..."
36 36
37 start-stop-daemon --start --quiet --background \ 37 start-stop-daemon --start --quiet --background \
38 --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} 38 --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \
39 -- --log-dir=/var/log/cinder
39 40
40 if [ $? -eq 0 ]; then 41 if [ $? -eq 0 ]; then
41 echo "done." 42 echo "done."
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf
index 24bbc23..e77aed9 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf
+++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf
@@ -49,7 +49,7 @@ rabbit_port=5672
49 49
50# (Optional) The directory to keep log files in (will be 50# (Optional) The directory to keep log files in (will be
51# prepended to --log-file) (string value) 51# prepended to --log-file) (string value)
52#log_dir=<None> 52log_dir=/var/log/cinder
53 53
54# Use syslog for logging. (boolean value) 54# Use syslog for logging. (boolean value)
55#use_syslog=false 55#use_syslog=false