fi
cat <<EOF >/etc/nginx/conf.d/tile_qos_rates.map
-default 4096; # Default Rate (No QoS cookie)
-"${QOS_TOKEN_STALE}" 16384; # Stale
+default 24576; # Default Rate (No QoS cookie)
+"${QOS_TOKEN_STALE}" 24576; # Stale
"${QOS_TOKEN_DEFAULT}" 24576; # Default
"${QOS_TOKEN_OSM_STALE}" 32768; # Exclusive Stale
"${QOS_TOKEN_OSM}" 32768; # Exclusive
"${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 && /bin/systemctl try-reload-or-restart nginx