Notify systemd when starting Neutron server
systemd is notified only when Neutron is started with multiple api workers. This patch adds systemd.notify_once() call when starting Neutron server with api_workers=0 Change-Id: I95581dc5dffde6168c68d9f04cf8bdfcdb773ba8 Closes-Bug: #1330532
This commit is contained in:
parent
840425cbcb
commit
09856a0cf6
@ -45,6 +45,7 @@ from neutron.openstack.common import gettextutils
|
|||||||
from neutron.openstack.common import jsonutils
|
from neutron.openstack.common import jsonutils
|
||||||
from neutron.openstack.common import log as logging
|
from neutron.openstack.common import log as logging
|
||||||
from neutron.openstack.common import service as common_service
|
from neutron.openstack.common import service as common_service
|
||||||
|
from neutron.openstack.common import systemd
|
||||||
|
|
||||||
socket_opts = [
|
socket_opts = [
|
||||||
cfg.IntOpt('backlog',
|
cfg.IntOpt('backlog',
|
||||||
@ -210,6 +211,7 @@ class Server(object):
|
|||||||
# For the case where only one process is required.
|
# For the case where only one process is required.
|
||||||
self._server = self.pool.spawn(self._run, application,
|
self._server = self.pool.spawn(self._run, application,
|
||||||
self._socket)
|
self._socket)
|
||||||
|
systemd.notify_once()
|
||||||
else:
|
else:
|
||||||
# Minimize the cost of checking for child exit by extending the
|
# Minimize the cost of checking for child exit by extending the
|
||||||
# wait interval past the default of 0.01s.
|
# wait interval past the default of 0.01s.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user