2
0
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:
Lasse Karstensen 2012-02-09 15:42:42 +01:00
parent f110d3ddb1
commit 0442899e04

View File

@ -271,8 +271,12 @@ def main():
usage() usage()
sys.exit(1) sys.exit(1)
verbose = False
if "--verbose" in sys.argv:
verbose = True
config = ConfigParser.RawConfigParser() config = ConfigParser.RawConfigParser()
config.read(sys.argv[2]) config.read(sys.argv[-1])
instancekeys = [ key for key in config.sections() if key.startswith("instance:") ] instancekeys = [ key for key in config.sections() if key.startswith("instance:") ]
servers = {} servers = {}
@ -343,6 +347,7 @@ def main():
if "--run" in sys.argv: if "--run" in sys.argv:
if verbose: print "Starting up.."
servers = start_servers(instances) servers = start_servers(instances)
try: try: