diff options
Diffstat (limited to 'sys-cluster/nova/files/nova.initd')
-rw-r--r-- | sys-cluster/nova/files/nova.initd | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sys-cluster/nova/files/nova.initd b/sys-cluster/nova/files/nova.initd index a75a33c1fed..2edbed96fd5 100644 --- a/sys-cluster/nova/files/nova.initd +++ b/sys-cluster/nova/files/nova.initd @@ -4,14 +4,13 @@ description="Starts ${SVCNAME} service for OpenStack" -command=/usr/bin/${SVCNAME} -command_background=yes +command="/usr/bin/${SVCNAME} -- --config-file /etc/nova/nova.conf" pidfile=/var/run/nova/${SVCNAME}.pid required_files=/etc/nova/nova.conf -start_stop_daemon_args="--quiet --user ${NOVA_USER:-nova} -- --config-file /etc/nova/nova.conf" +start_stop_daemon_args="--quiet --user ${NOVA_USER:-nova}" if [ "$SVCNAME" == nova-compute ]; then required_files="${required_files} /etc/nova/nova-compute.conf" - start_stop_daemon_args="${start_stop_daemon_args} --config-file /etc/nova/nova-compute.conf" + command="${command} --config-file /etc/nova/nova-compute.conf" fi @@ -23,3 +22,9 @@ start_pre() { checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0775 ${NOVA_RUN:-/var/run/nova} checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0775 ${NOVA_RUN:-/var/lock/nova} } + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon -S -b -p ${pidfile} -q -u ${NOVA_USER:-nova} -x ${command} + eend $? +} |