pmg_service_control
Start, stop, restart, or reload a PMG service with dry-run planning before execution. Use confirm=True to apply changes.
Instructions
MUTATION (MEDIUM): start, stop, restart, or reload a PMG service. Dry-run by default. confirm=True to execute. Needs PROXIMO_PMG_* config.
WARNING: stop on postfix/pmgproxy/pmgdaemon interrupts mail delivery until manually restarted. Check current state first with pmg_service_status. Dry-run returns a PLAN; confirm=True executes and returns {"status": "ok", "result": ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | PMG node name; defaults to the configured node. | |
| action | Yes | Control action: start|stop|restart|reload. | |
| confirm | No | False (default) returns a dry-run PLAN; True executes the mutation. | |
| service | Yes | PMG service name, e.g. postfix, pmgproxy, pmgdaemon, clamav, spamassassin. | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |