summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-barbican
diff options
context:
space:
mode:
authorKeith Holman <Keith.Holman@windriver.com>2014-05-21 15:48:34 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-05-23 23:39:38 -0400
commit601fb3a5c7c77ae940720830ee21a177f8fc322e (patch)
tree6f36fa253b49be37cd64765a33e1a95f6745532e /meta-openstack/recipes-devtools/python/python-barbican
parent37bcb42b746cc9f0901f8610f18de337e4057f93 (diff)
downloadmeta-cloud-services-601fb3a5c7c77ae940720830ee21a177f8fc322e.tar.gz
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 <Keith.Holman@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-barbican')
-rw-r--r--meta-openstack/recipes-devtools/python/python-barbican/barbican.init7
1 files changed, 4 insertions, 3 deletions
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@"
14DESC="barbican-@suffix@" 14DESC="barbican-@suffix@"
15PIDFILE="/var/run/barbican/barbican-$SUFFIX.pid" 15PIDFILE="/var/run/barbican/barbican-$SUFFIX.pid"
16CONFIG_DIR="/etc/barbican" 16CONFIG_DIR="/etc/barbican"
17LOG_DIR="/var/log/barbican"
17UWSGI="/usr/bin/uwsgi" 18UWSGI="/usr/bin/uwsgi"
18EXEC="--master --emperor $CONFIG_DIR/vassals" 19EXEC="--master --emperor $CONFIG_DIR/vassals --logto $LOG_DIR/barbican.log"
19 20
20if [ ! -d /var/run/barbican ]; then 21if [ ! -d /var/run/barbican ]; then
21 mkdir -p /var/run/barbican 22 mkdir -p /var/run/barbican
@@ -39,8 +40,8 @@ start ()
39 mkdir -p $PIDDIR 40 mkdir -p $PIDDIR
40 chown barbican $PIDDIR 41 chown barbican $PIDDIR
41 fi 42 fi
42 if [ ! -d /var/log/barbican ]; then 43 if [ ! -d $LOG_DIR ]; then
43 mkdir /var/log/barbican 44 mkdir -p $LOG_DIR
44 fi 45 fi
45 echo -n "Starting $DESC..." 46 echo -n "Starting $DESC..."
46 47