tilecache: cleaner nginx reload
authorGrant Slater <git@firefishy.com>
Mon, 2 Jan 2017 22:12:02 +0000 (22:12 +0000)
committerGrant Slater <git@firefishy.com>
Mon, 2 Jan 2017 22:12:02 +0000 (22:12 +0000)
cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb

index 32c2e44..9a386a3 100755 (executable)
@@ -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 )