From 25215dfe8a39fd096522de39cd00e4ba75aff20d Mon Sep 17 00:00:00 2001 From: Matt Amos Date: Mon, 20 Jun 2016 19:36:37 +0100 Subject: [PATCH] Use variable to enable readonly mode, as was used in the previous version of the config. --- cookbooks/web/templates/default/cgimap.init.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.43.2