]>
git.ipfire.org Git - collecty.git/blob - collectyd
10 c
= collecty
.Collecty()
12 # Parse command line options
13 op
= optparse
.OptionParser(usage
="usage: %prog [options] <configfile1> ... <configfileN>")
14 op
.add_option("-d", "--daemon", action
="store_true", default
=False,
15 help="Run as a daemon in background.")
16 (options
, configfiles
) = op
.parse_args()
19 for file in configfiles
:
22 # Load default config file
23 c
.read_config("/etc/collecty/collecty.conf")
26 print >>sys
.stderr
, "Error: No instances were configured."