aboutsummaryrefslogtreecommitdiff
path: root/rpki/pubd.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-09-16 19:21:03 +0000
committerRob Austein <sra@hactrn.net>2014-09-16 19:21:03 +0000
commit0eafef08ca3a40747d227126c86fbf000427bad4 (patch)
tree2e186ec6ec9cff6292ee398269420c34a6b8541f /rpki/pubd.py
parentbcf3d77c6806571271e2e7870a5140a4ceca7cd8 (diff)
At this point I'm pretty sure that removing the --config options from
daemons was pointless, so back that out before removing branches/tk713. svn path=/branches/tk705/; revision=5958
Diffstat (limited to 'rpki/pubd.py')
-rw-r--r--rpki/pubd.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpki/pubd.py b/rpki/pubd.py
index fe7987d1..335da0e6 100644
--- a/rpki/pubd.py
+++ b/rpki/pubd.py
@@ -93,6 +93,8 @@ class main(object):
self.irbe_cms_timestamp = None
parser = argparse.ArgumentParser(description = __doc__)
+ parser.add_argument("-c", "--config",
+ help = "override default location of configuration file")
parser.add_argument("-f", "--foreground", action = "store_true",
help = "do not daemonize")
parser.add_argument("--pidfile",
@@ -106,7 +108,7 @@ class main(object):
rpki.log.init("pubd", args)
- self.cfg = rpki.config.parser(section = "pubd")
+ self.cfg = rpki.config.parser(set_filename = args.config, section = "pubd")
self.cfg.set_global_flags()
if not args.foreground: