mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 09:57:09 +00:00
last arg is the config file
This commit is contained in:
parent
f110d3ddb1
commit
0442899e04
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue