diff options
Diffstat (limited to 'bin/nova-compute')
| -rwxr-xr-x | bin/nova-compute | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/bin/nova-compute b/bin/nova-compute index f57b68584..d2d352da2 100755 --- a/bin/nova-compute +++ b/bin/nova-compute @@ -17,9 +17,10 @@ # License for the specific language governing permissions and limitations # under the License. -""" - Twistd daemon for the nova compute nodes. -""" +"""Starter script for Nova Compute.""" + +import eventlet +eventlet.monkey_patch() import gettext import os @@ -36,13 +37,9 @@ if os.path.exists(os.path.join(possible_topdir, 'nova', '__init__.py')): gettext.install('nova', unicode=1) from nova import service -from nova import twistd from nova import utils - if __name__ == '__main__': utils.default_flagfile() - twistd.serve(__file__) - -if __name__ == '__builtin__': - application = service.Service.create() # pylint: disable=C0103 + service.serve() + service.wait() |
