summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2013-01-03 11:48:36 +0100
committerAzul <azul@riseup.net>2013-01-03 11:48:36 +0100
commita018c194bac3ad592a11486c38009c69c1e9c607 (patch)
tree7694574f784610add9c5a1fc1a038a51c75b8813
parente38adf0a52743f03acf00fb71e816571558468eb (diff)
renamed --fill-pool option to --run-onceHEADmaster
-rw-r--r--README.md6
-rwxr-xr-xbin/leap_ca_daemon2
2 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index e2393a4..b8cfc26 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,11 @@ From gem:
Running
--------------------
-See if it worked:
+Run once:
+
+ leap_ca_daemon --run-once
+
+Run in foreground to see if it works:
leap_ca_daemon run -- test/config/config.yaml
browse to http://localhost:5984/_utils
diff --git a/bin/leap_ca_daemon b/bin/leap_ca_daemon
index 13c0691..21e48ef 100755
--- a/bin/leap_ca_daemon
+++ b/bin/leap_ca_daemon
@@ -40,7 +40,7 @@ if ARGV.grep(/--version/).any?
end
# --fill-pool will fill the pool and then exit
-if ARGV.grep(/--fill-pool/).any?
+if ARGV.grep(/--once/).any? or ARGV.grep(/--run-once/).any?
require 'leap_ca'
pool = LeapCA::Pool.new(:size => LeapCA::Config.max_pool_size)
pool.fill