diff options
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." |
