This website requires JavaScript.
b3f5aba0c465b263c1d0a15c7d249dafb3a98e6c
nova /bin /nova-compute
43 lines
1.4 KiB
Plaintext
2010年05月27日 23:05:26 -07:00
#!/usr/bin/env python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
2010年06月23日 22:04:16 -07:00
# Copyright 2010 United States Government as represented by the
2010年06月23日 23:15:06 -07:00
# Administrator of the National Aeronautics and Space Administration.
2010年06月23日 22:04:16 -07:00
# All Rights Reserved.
2010年06月24日 04:11:55 +01:00
#
2010年06月23日 22:04:16 -07:00
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
2010年06月24日 04:11:55 +01:00
#
2010年05月27日 23:05:26 -07:00
# Unless required by applicable law or agreed to in writing, software
2010年06月23日 22:04:16 -07:00
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
2010年05月27日 23:05:26 -07:00
"""
Twistd daemon for the nova compute nodes.
2010年10月25日 03:45:19 +09:00
import eventlet
2010年09月08日 10:45:39 +02:00
import os
# If ../nova/__init__.py exists, add ../ to Python search path, so that
# it will override what happens to be installed in /usr/(local/)lib/python...
possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
if os.path.exists(os.path.join(possible_topdir, 'nova', '__init__.py')):
sys.path.insert(0, possible_topdir)
2010年12月09日 15:25:14 -08:00
from nova import service
2010年05月27日 23:05:26 -07:00
if __name__ == '__main__':
2010年12月09日 15:25:14 -08:00
service.serve()