]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: switch reload to systemctl try-reload-or-restart
authorGrant Slater <git@firefishy.com>
Mon, 2 Jan 2017 22:17:59 +0000 (22:17 +0000)
committerGrant Slater <git@firefishy.com>
Mon, 2 Jan 2017 22:17:59 +0000 (22:17 +0000)
cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb

index 9a386a3e73c8f3c686a09781d24f63d8b5c907f1..a8f9378233dee2d2dfacbec53d535390036873f1 100755 (executable)
@@ -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