Projet

Général

Profil

Révision 0442899e

ID0442899e04cea0d35710a54444809f0a76f6cd0b
Parent f110d3dd
Enfant 13662ae9, 8354c8ba

Ajouté par Lasse Karstensen il y a presque 14 ans

last arg is the config file

Voir les différences:

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