From: Matt Amos Date: Mon, 20 Jun 2016 18:36:37 +0000 (+0100) Subject: Use variable to enable readonly mode, as was used in the previous version of the... X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/25215dfe8a39fd096522de39cd00e4ba75aff20d Use variable to enable readonly mode, as was used in the previous version of the config. --- diff --git a/cookbooks/web/templates/default/cgimap.init.erb b/cookbooks/web/templates/default/cgimap.init.erb index 888e10cff..9048f1fd7 100644 --- a/cookbooks/web/templates/default/cgimap.init.erb +++ b/cookbooks/web/templates/default/cgimap.init.erb @@ -13,7 +13,7 @@ CGIMAP_RATELIMIT=204800; export CGIMAP_RATELIMIT CGIMAP_MAXDEBT=250; export CGIMAP_MAXDEBT start() { - start-stop-daemon --start --chuid rails --exec /usr/bin/openstreetmap-cgimap -- --daemon --port=8000 --instances=30 --pidfile $CGIMAP_PIDFILE + start-stop-daemon --start --chuid rails --exec /usr/bin/openstreetmap-cgimap --pidfile $CGIMAP_PIDFILE -- --daemon <% if @database_readonly %>--readonly<% end %> --port=8000 --instances=30 } stop() {