diff options
| author | Amy Fong <amy.fong@windriver.com> | 2014-03-28 13:56:02 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-28 14:39:30 -0400 |
| commit | 984c2d69f51824a4c1e7b3a448fe24759e594026 (patch) | |
| tree | 43217944da7ae820af7e9ccfcd775cc72597d679 /meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init | |
| parent | d6e8ddfcca4c0c61643bca5e33113b414077306a (diff) | |
| download | meta-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-neutron/neutron-agent.init')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init b/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init index e02ea9e..01cb27e 100644 --- a/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init +++ b/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init | |||
| @@ -26,10 +26,15 @@ start() | |||
| 26 | fi | 26 | fi |
| 27 | fi | 27 | fi |
| 28 | 28 | ||
| 29 | if [ ! -d /var/log/neutron ]; then | ||
| 30 | mkdir -p /var/log/neutron | ||
| 31 | fi | ||
| 32 | |||
| 29 | echo -n "Starting $DESC..." | 33 | echo -n "Starting $DESC..." |
| 30 | 34 | ||
| 31 | start-stop-daemon --start --quiet --background \ | 35 | start-stop-daemon --start --quiet --background \ |
| 32 | --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} | 36 | --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \ |
| 37 | -- --log-dir=/var/log/neutron | ||
| 33 | 38 | ||
| 34 | if [ $? -eq 0 ]; then | 39 | if [ $? -eq 0 ]; then |
| 35 | echo "done." | 40 | echo "done." |
