def espolld(): """Entry point for espolld.""" argv = sys.argv oparse = get_opt_parser(default_config_file=get_config_path()) (opts, args) = oparse.parse_args(args=argv) try: config = get_config(opts.config_file, opts) except ConfigError, e: print e sys.exit(1)
def setup(inargs, config_file=None): oparse = get_opt_parser(default_config_file=get_config_path()) (opts, args) = oparse.parse_args(args=inargs) if config_file: opts.config_file = config_file try: config = get_config(opts.config_file, opts) except ConfigError, e: print e sys.exit(1)
def gen_ma_storefile(): """Translated from the original Perl by jdugan""" argv = sys.argv oparse = get_opt_parser(default_config_file=get_config_path()) (opts, args) = oparse.parse_args(args=argv) try: config = get_config(opts.config_file, opts) except ConfigError, e: print >> sys.stderr, e sys.exit(1)
def gen_ma_storefile(): """Translated from the original Perl by jdugan""" argv = sys.argv oparse = get_opt_parser(default_config_file=get_config_path()) (opts, args) = oparse.parse_args(args=argv) try: config = get_config(opts.config_file, opts) except ConfigError, e: print >>sys.stderr, e sys.exit(1)
def espoll(): argv = sys.argv oparse = get_opt_parser(default_config_file=get_config_path()) oparse.usage = "%prog [options] router oidset" (opts, args) = oparse.parse_args(args=argv) if len(args[1:]) != 2: oparse.error("requires router and oidset arguments") device_name, oidset_name = args[1:] try: config = get_config(opts.config_file, opts) except ConfigError, e: print e sys.exit(1)
def espersistd(): """Entry point for espersistd. espersistd consists of one PersistenceManager thread and multiple worker sub-processes. """ argv = sys.argv oparse = get_opt_parser(default_config_file=get_config_path()) oparse.add_option("-r", "--role", dest="role", default="manager") oparse.add_option("-q", "--queue", dest="qname", default="") oparse.add_option("-n", "--number", dest="number", default="") (opts, args) = oparse.parse_args(args=argv) opts.config_file = os.path.abspath(opts.config_file) try: config = get_config(opts.config_file, opts) except ConfigError, e: print >> sys.stderr, e sys.exit(1)