service_restart
Restart a system service on TrueNAS, such as SMB, NFS, or SSH, while capturing the prior state for audit logging. This action is not undoable.
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 |