]> git.openstreetmap.org Git - chef.git/commitdiff
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 32c2e4459afa4495fd3557ca5f732e9f15b34e2a..9a386a3e73c8f3c686a09781d24f63d8b5c907f1 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
 
 "${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 )