From: Grant Slater Date: Mon, 2 Jan 2017 22:17:59 +0000 (+0000) Subject: tilecache: switch reload to systemctl try-reload-or-restart X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/0eae31475f4a5696a1ab75ed601b3099110007e4?ds=sidebyside tilecache: switch reload to systemctl try-reload-or-restart --- 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 9a386a3e7..a8f937823 100755 --- a/cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb +++ b/cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb @@ -42,4 +42,4 @@ default 'qos_token=${QOS_TOKEN_DEFAULT}; Max-Age=${VALID_TOKEN}; Domain=openstre EOF # Check config, reload config and fail safe -/etc/init.d/nginx configtest && ( /usr/sbin/service nginx reload || true ) +/etc/init.d/nginx configtest && /bin/systemctl try-reload-or-restart nginx