From 0442899e04cea0d35710a54444809f0a76f6cd0b Mon Sep 17 00:00:00 2001 From: Lasse Karstensen Date: Thu, 9 Feb 2012 15:42:42 +0100 Subject: [PATCH] last arg is the config file --- tools/munin-node-from-hell/muninnode-from-hell | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/munin-node-from-hell/muninnode-from-hell b/tools/munin-node-from-hell/muninnode-from-hell index 2256dbf6..30b05473 100755 --- a/tools/munin-node-from-hell/muninnode-from-hell +++ b/tools/munin-node-from-hell/muninnode-from-hell @@ -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: