Author: tmckay
Date: 2011-08-05 20:51:31 +0000 (Fri, 05 Aug 2011)
New Revision: 4910
Modified:
trunk/cumin/bin/cumin
Log:
Allow configure file to have "webs:" or "datas:", master will not run
any instances if the list is empty.
Modified: trunk/cumin/bin/cumin
===================================================================
--- trunk/cumin/bin/cumin 2011-08-05 20:49:12 UTC (rev 4909)
+++ trunk/cumin/bin/cumin 2011-08-05 20:51:31 UTC (rev 4910)
@@ -115,13 +115,15 @@
# Get our list of cumin-web and data instances
# create list elements to hold the process object, section arg, and app
apps = []
- for instance in options.webs.split(','):
- args, prog_string = get_args("cumin-web", instance, options.init_only,
console, options.web_options)
- apps.append([None, args, prog_string])
+ if len(options.webs) > 0:
+ for instance in options.webs.split(','):
+ args, prog_string = get_args("cumin-web", instance,
options.init_only, console, options.web_options)
+ apps.append([None, args, prog_string])
- for instance in options.datas.split(','):
- args, prog_string = get_args("cumin-data", instance, options.init_only,
console, options.data_options)
- apps.append([None, args, prog_string])
+ if len(options.datas) > 0:
+ for instance in options.datas.split(','):
+ args, prog_string = get_args("cumin-data", instance,
options.init_only, console, options.data_options)
+ apps.append([None, args, prog_string])
# If we are just checking startup flags, invoke each instance
# with "--init-only" and return status to caller.
Show replies by date