From 984c2d69f51824a4c1e7b3a448fe24759e594026 Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Fri, 28 Mar 2014 13:56:02 -0400 Subject: OpenStack: sysvinit scripts - enable logging Explicitly enable --log-dir to enable logging where available Signed-off-by: Amy Fong Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-cinder/cinder.init | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python/python-cinder') 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() fi fi + if [ ! -d /var/log/cinder ]; then + mkdir /var/log/cinder + fi + echo -n "Starting $DESC..." start-stop-daemon --start --quiet --background \ - --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} + --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \ + -- --log-dir=/var/log/cinder if [ $? -eq 0 ]; then echo "done." -- cgit v1.2.3-54-g00ecf