reload_nginx
Run nginx config test and reload the live service only if it passes, preventing broken configs from being applied. Call after create, delete, or restore site to apply changes.
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 |
|---|---|---|---|
| success | Yes | ||
| test_output | Yes | Combined stdout/stderr of `nginx -t` |