From 601fb3a5c7c77ae940720830ee21a177f8fc322e Mon Sep 17 00:00:00 2001 From: Keith Holman Date: Wed, 21 May 2014 15:48:34 -0400 Subject: barbican: output a log file for debugging purposes Currently, the /var/log/barbican directory is created but remains empty. This change outputs a Barbican log file for debugging communication problems that occur via uWSGI. Signed-off-by: Keith Holman --- .../recipes-devtools/python/python-barbican/barbican.init | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'meta-openstack/recipes-devtools/python/python-barbican') diff --git a/meta-openstack/recipes-devtools/python/python-barbican/barbican.init b/meta-openstack/recipes-devtools/python/python-barbican/barbican.init index ba3a019..2b3f35a 100644 --- a/meta-openstack/recipes-devtools/python/python-barbican/barbican.init +++ b/meta-openstack/recipes-devtools/python/python-barbican/barbican.init @@ -14,8 +14,9 @@ SUFFIX="@suffix@" DESC="barbican-@suffix@" PIDFILE="/var/run/barbican/barbican-$SUFFIX.pid" CONFIG_DIR="/etc/barbican" +LOG_DIR="/var/log/barbican" UWSGI="/usr/bin/uwsgi" -EXEC="--master --emperor $CONFIG_DIR/vassals" +EXEC="--master --emperor $CONFIG_DIR/vassals --logto $LOG_DIR/barbican.log" if [ ! -d /var/run/barbican ]; then mkdir -p /var/run/barbican @@ -39,8 +40,8 @@ start () mkdir -p $PIDDIR chown barbican $PIDDIR fi - if [ ! -d /var/log/barbican ]; then - mkdir /var/log/barbican + if [ ! -d $LOG_DIR ]; then + mkdir -p $LOG_DIR fi echo -n "Starting $DESC..." -- cgit v1.2.3-54-g00ecf