control_service
Destructive
Start, stop, or restart systemd services; stop dependent services too when needed to prevent dependency-related failures.
Instructions
Starts, stops or restarts a systemd service (systemd services cannot be paused). Stopping one that others depend on fails unless with_dependents=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The service's name (as in `sc query`). | |
| action | Yes | start, stop, restart, pause or continue. | |
| with_dependents | No | For stop and restart: also stop the running services that depend on it (otherwise Windows refuses while any runs). |