X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/27b68b4b52f9738fd5d289fadcfdc5c6a3b9afc7..0eae31475f4a5696a1ab75ed601b3099110007e4:/cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb diff --git a/cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb b/cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb index 8b038c546..a8f937823 100755 --- a/cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb +++ b/cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb @@ -28,8 +28,8 @@ if [ -z "$QOS_TOKEN_OSM" -o -z "$QOS_TOKEN_DEFAULT" -o -z "$QOS_TOKEN_STALE" ]; fi cat </etc/nginx/conf.d/tile_qos_rates.map -default 4096; # Default Rate (No QoS cookie) -"${QOS_TOKEN_STALE}" 16384; # Stale +default 24576; # Default Rate (No QoS cookie) +"${QOS_TOKEN_STALE}" 24576; # Stale "${QOS_TOKEN_DEFAULT}" 24576; # Default "${QOS_TOKEN_OSM_STALE}" 32768; # Exclusive Stale "${QOS_TOKEN_OSM}" 32768; # Exclusive @@ -41,4 +41,5 @@ default 'qos_token=${QOS_TOKEN_DEFAULT}; Max-Age=${VALID_TOKEN}; Domain=openstre "${QOS_TOKEN_OSM}" ''; # Do not Set-Cookie. # Exclusive EOF -/etc/init.d/nginx configtest && service nginx reload +# Check config, reload config and fail safe +/etc/init.d/nginx configtest && /bin/systemctl try-reload-or-restart nginx