From: Michael Tremer Date: Tue, 17 Nov 2009 08:21:38 +0000 (+0100) Subject: colletcyd: Some code cleanup and commenting. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ee18324cf332ab2c1788902111fe82a900653b8;p=people%2Fms%2Fcollecty.git colletcyd: Some code cleanup and commenting. No functional changes. --- diff --git a/collectyd b/collectyd index 3fa6938..95b0c42 100755 --- a/collectyd +++ b/collectyd @@ -5,21 +5,21 @@ import sys import optparse -from collecty import Collecty +import collecty -c = Collecty() +c = collecty.Collecty() # Parse command line options op = optparse.OptionParser(usage="usage: %prog [options] ... ") op.add_option("-d", "--daemon", action="store_true", default=False, help="Run as a daemon in background.") - (options, configfiles) = op.parse_args() if configfiles: for file in configfiles: c.read_config(file) else: + # Load default config file c.read_config("/etc/collecty/collecty.conf") if not c.instances: