From f29b9ed2427f24b45e3372ff8005f4341e377319 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 2 Jan 2017 22:12:02 +0000 Subject: [PATCH] tilecache: cleaner nginx reload --- .../templates/default/nginx_generate_tilecache_qos_map.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 32c2e4459..9a386a3e7 100755 --- a/cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb +++ b/cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb @@ -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 && ( /usr/sbin/service nginx reload || true ) -- 2.43.2