reload_nginx
Test nginx configuration and reload the live service only when the test passes, preventing broken configs from being applied.
Instructions
Run nginx -t and reload the live service only if the config test passes - never reloads a broken config. Call this after create_site, delete_site, or restore_site to apply the change; those tools do not reload automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | Present on failure: how to recover, e.g. via rollback_site | |
| success | Yes | ||
| test_output | Yes | Combined stdout/stderr of `nginx -t` |