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 9a386a3..a8f9378 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