summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova/nova.init
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2014-03-28 13:56:02 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-03-28 14:39:30 -0400
commit984c2d69f51824a4c1e7b3a448fe24759e594026 (patch)
tree43217944da7ae820af7e9ccfcd775cc72597d679 /meta-openstack/recipes-devtools/python/python-nova/nova.init
parentd6e8ddfcca4c0c61643bca5e33113b414077306a (diff)
downloadmeta-cloud-services-984c2d69f51824a4c1e7b3a448fe24759e594026.tar.gz
OpenStack: sysvinit scripts - enable logging
Explicitly enable --log-dir to enable logging where available Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova/nova.init')
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova/nova.init9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova.init b/meta-openstack/recipes-devtools/python/python-nova/nova.init
index 5917882..87e72fa 100644
--- a/meta-openstack/recipes-devtools/python/python-nova/nova.init
+++ b/meta-openstack/recipes-devtools/python/python-nova/nova.init
@@ -46,11 +46,14 @@ start ()
46 mkdir -p $PIDDIR 46 mkdir -p $PIDDIR
47 chown nova $PIDDIR 47 chown nova $PIDDIR
48 fi 48 fi
49 if [ ! -d /var/log/nova ]; then
50 mkdir /var/log/nova
51 fi
49 echo -n "Starting $DESC..." 52 echo -n "Starting $DESC..."
50 53
51 sudo -u nova \ 54 start-stop-daemon --start --quiet --background \
52 start-stop-daemon --start --quiet --background \ 55 --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \
53 --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} 56 -- --log-dir=/var/log/nova
54 57
55 if [ $? -eq 0 ]; then 58 if [ $? -eq 0 ]; then
56 echo "done." 59 echo "done."