Unit File Write Tool
unit_file_write_toolWrite or replace a systemd unit file, backing up existing files and automatically running daemon-reload. Ensures service configuration changes take effect.
Instructions
Write a new unit file for setting up a service. Backs up any file it overwrites.
Requires the host's unit directory (default /etc/systemd/system) to be bind-mounted into the container. Runs daemon-reload after writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | Start the unit after writing | |
| enable | No | Enable the unit after writing | |
| content | Yes | Full contents of the unit file | |
| unit_name | Yes | Bare unit file name (e.g. "myapp.service") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||