Révision 0442899e
last arg is the config file
| tools/munin-node-from-hell/muninnode-from-hell | ||
|---|---|---|
| 271 | 271 |
usage() |
| 272 | 272 |
sys.exit(1) |
| 273 | 273 |
|
| 274 |
verbose = False |
|
| 275 |
if "--verbose" in sys.argv: |
|
| 276 |
verbose = True |
|
| 277 |
|
|
| 274 | 278 |
config = ConfigParser.RawConfigParser() |
| 275 |
config.read(sys.argv[2])
|
|
| 279 |
config.read(sys.argv[-1])
|
|
| 276 | 280 |
|
| 277 | 281 |
instancekeys = [ key for key in config.sections() if key.startswith("instance:") ]
|
| 278 | 282 |
servers = {}
|
| ... | ... | |
| 343 | 347 |
|
| 344 | 348 |
|
| 345 | 349 |
if "--run" in sys.argv: |
| 350 |
if verbose: print "Starting up.." |
|
| 346 | 351 |
servers = start_servers(instances) |
| 347 | 352 |
|
| 348 | 353 |
try: |
Formats disponibles : Unified diff