summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/keystone-all8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/keystone-all b/bin/keystone-all
index 075b007e..d961669c 100755
--- a/bin/keystone-all
+++ b/bin/keystone-all
@@ -21,6 +21,7 @@ from paste import deploy
from keystone import config
from keystone.common import wsgi
+from keystone.common import utils
CONF = config.CONF
@@ -46,6 +47,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()