vps_restart_service
Restart a system service on your VPS (e.g., nginx, MariaDB) with two-step confirmation. Only allowed services are permitted, preventing unauthorized restarts.
Instructions
Restart a system service on the VPS (e.g. nginx, mariadb).
Only services listed in the server's ALLOWED_SERVICES configuration can be restarted — anything else is refused before it ever reaches the VPS.
This causes a brief service interruption. Call once with confirm=false (or omitted) to see what would happen; nothing runs until you call again with confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| service | Yes |