diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-05-14 16:08:41 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-05-21 14:35:25 -0400 |
| commit | dc29257c22c86ce730420f82a5190b84cfdd0004 (patch) | |
| tree | 5b8285cb2d5c754515f37fc0f28f0fdbed067e39 /meta-openstack/recipes-devtools/python/python-cinder | |
| parent | 6e39ff3c86f69d5c78790a1e2377a18038b44347 (diff) | |
| download | meta-cloud-services-dc29257c22c86ce730420f82a5190b84cfdd0004.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-volume | 3 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/cinder.conf | 2 |
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 80adfe4..2772fb1 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> | 52 | log_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 |
