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-keystone/keystone | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python/python-keystone') diff --git a/meta-openstack/recipes-devtools/python/python-keystone/keystone b/meta-openstack/recipes-devtools/python/python-keystone/keystone index 463b05f..d73bc75 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone/keystone +++ b/meta-openstack/recipes-devtools/python/python-keystone/keystone @@ -27,10 +27,14 @@ start () fi fi + if [ ! -d /var/log/keystone ]; then + mkdir /var/log/keystone + 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/keystone if [ $? -eq 0 ]; then echo "done." -- cgit v1.2.3-54-g00ecf