Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Fix for Bug 7030: nimbusctl should wait longer to check process
Browse files Browse the repository at this point in the history
  • Loading branch information
timf committed Jun 9, 2010
1 parent 925f35f commit 3461695
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions home/sbin/nimbusconfigure.py
Expand Up @@ -31,6 +31,7 @@
keystore.pass: changeit
services.enabled: True
services.wait: 10
web.enabled: False
"""
CONFIG_STATE_PATH = 'nimbus-setup.conf'
Expand Down
7 changes: 6 additions & 1 deletion home/sbin/nimbusctl.py
Expand Up @@ -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:
Expand All @@ -67,7 +72,7 @@
program = NIMBUS_SERVICES_EXE,
args = [],
workingDir = NIMBUS_HOME,
postStartDelay=5
postStartDelay=services_wait
))

if web_enabled:
Expand Down

0 comments on commit 3461695

Please sign in to comment.