diff options
author | Keith Holman <Keith.Holman@windriver.com> | 2014-05-21 15:48:34 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-05-23 23:39:38 -0400 |
commit | 601fb3a5c7c77ae940720830ee21a177f8fc322e (patch) | |
tree | 6f36fa253b49be37cd64765a33e1a95f6745532e /meta-openstack/recipes-devtools/python/python-barbican | |
parent | 37bcb42b746cc9f0901f8610f18de337e4057f93 (diff) | |
download | meta-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.init | 7 |
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@" | |||
14 | DESC="barbican-@suffix@" | 14 | DESC="barbican-@suffix@" |
15 | PIDFILE="/var/run/barbican/barbican-$SUFFIX.pid" | 15 | PIDFILE="/var/run/barbican/barbican-$SUFFIX.pid" |
16 | CONFIG_DIR="/etc/barbican" | 16 | CONFIG_DIR="/etc/barbican" |
17 | LOG_DIR="/var/log/barbican" | ||
17 | UWSGI="/usr/bin/uwsgi" | 18 | UWSGI="/usr/bin/uwsgi" |
18 | EXEC="--master --emperor $CONFIG_DIR/vassals" | 19 | EXEC="--master --emperor $CONFIG_DIR/vassals --logto $LOG_DIR/barbican.log" |
19 | 20 | ||
20 | if [ ! -d /var/run/barbican ]; then | 21 | if [ ! -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 | ||