Reload nginx only if the config is valid Snippet·July 25, 2017 nginx -t && systemctl reload nginx || echo 'config invalid, not reloaded' >&2