diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/keystone-all | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/keystone-all b/bin/keystone-all index f58c2a03..bc4ab4b8 100755 --- a/bin/keystone-all +++ b/bin/keystone-all @@ -20,6 +20,7 @@ from paste import deploy from keystone import config from keystone.common import wsgi +from keystone.common import utils CONF = config.CONF @@ -37,6 +38,13 @@ def serve(*servers): server.port) server.start() + # notify calling process we are ready to serve + if CONF.onready: + try: + utils.check_output(CONF.onready.split()) + except Exception: + logging.exception('Failed to execute onready command') + for server in servers: try: server.wait() |
