service_restart
Restart a specified system service on a TrueNAS target. Captures the prior service state for audit records.
Instructions
[WRITE] Restart a system service (e.g. 'smb', 'nfs', 'ssh').
Captures the prior service state for the audit record; declares no undo (a restart is not cleanly reversible).
Args: service: TrueNAS service name (see service_list). target: TrueNAS target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| service | Yes |