Permalink
Browse files

Fix for Bug 7030: nimbusctl should wait longer to check process

  • Loading branch information...
timf committed Jun 9, 2010
1 parent 925f35f commit 346169545592ddd8ac5cfede349012ce68a6020a
Showing with 7 additions and 1 deletion.
  1. +1 −0 home/sbin/nimbusconfigure.py
  2. +6 −1 home/sbin/nimbusctl.py
@@ -31,6 +31,7 @@
keystore.pass: changeit
services.enabled: True
+services.wait: 10
web.enabled: False
"""
CONFIG_STATE_PATH = 'nimbus-setup.conf'
View
@@ -47,6 +47,11 @@
sys.exit("Neither Nimbus services nor Nimbus web are enabled. "+
"See the '%s' config file to adjust this setting." % CONFIG_PATH)
+try:
+ services_wait = config.getint('nimbussetup', 'services.wait')
+except ConfigParser.NoOptionError:
+ services_wait = 10
+
NIMBUS_RUN_DIR = os.path.join(NIMBUS_HOME, 'var/run/')
if not os.path.isdir(NIMBUS_RUN_DIR):
try:
@@ -67,7 +72,7 @@
program = NIMBUS_SERVICES_EXE,
args = [],
workingDir = NIMBUS_HOME,
- postStartDelay=5
+ postStartDelay=services_wait
))
if web_enabled:

0 comments on commit 3461695

Please sign in to comment.