mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
last arg is the config file
This commit is contained in:
parent
f110d3ddb1
commit
0442899e04
@ -271,8 +271,12 @@ def main():
|
||||
usage()
|
||||
sys.exit(1)
|
||||
|
||||
verbose = False
|
||||
if "--verbose" in sys.argv:
|
||||
verbose = True
|
||||
|
||||
config = ConfigParser.RawConfigParser()
|
||||
config.read(sys.argv[2])
|
||||
config.read(sys.argv[-1])
|
||||
|
||||
instancekeys = [ key for key in config.sections() if key.startswith("instance:") ]
|
||||
servers = {}
|
||||
@ -343,6 +347,7 @@ def main():
|
||||
|
||||
|
||||
if "--run" in sys.argv:
|
||||
if verbose: print "Starting up.."
|
||||
servers = start_servers(instances)
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user