diff options
| author | Amy Fong <amy.fong@windriver.com> | 2014-03-28 13:56:02 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-28 14:39:30 -0400 |
| commit | 984c2d69f51824a4c1e7b3a448fe24759e594026 (patch) | |
| tree | 43217944da7ae820af7e9ccfcd775cc72597d679 /meta-openstack/recipes-devtools/python/python-cinder | |
| parent | d6e8ddfcca4c0c61643bca5e33113b414077306a (diff) | |
| download | meta-cloud-services-984c2d69f51824a4c1e7b3a448fe24759e594026.tar.gz | |
OpenStack: sysvinit scripts - enable logging
Explicitly enable --log-dir to enable logging where available
Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/cinder.init | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder.init b/meta-openstack/recipes-devtools/python/python-cinder/cinder.init index 0a3923a..ecf9d66 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder/cinder.init +++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder.init | |||
| @@ -30,10 +30,15 @@ start() | |||
| 30 | fi | 30 | fi |
| 31 | fi | 31 | fi |
| 32 | 32 | ||
| 33 | if [ ! -d /var/log/cinder ]; then | ||
| 34 | mkdir /var/log/cinder | ||
| 35 | fi | ||
| 36 | |||
| 33 | echo -n "Starting $DESC..." | 37 | echo -n "Starting $DESC..." |
| 34 | 38 | ||
| 35 | start-stop-daemon --start --quiet --background \ | 39 | start-stop-daemon --start --quiet --background \ |
| 36 | --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} | 40 | --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \ |
| 41 | -- --log-dir=/var/log/cinder | ||
| 37 | 42 | ||
| 38 | if [ $? -eq 0 ]; then | 43 | if [ $? -eq 0 ]; then |
| 39 | echo "done." | 44 | echo "done." |
