diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova/nova.init')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-nova/nova.init | 9 |
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." |
