ash service
Run Ash as a background service for persistent operation.
Usage
uv run ash service COMMAND [OPTIONS]Commands
start
Start Ash as a background service:
uv run ash service startOptions:
| Option | Default | Description |
|---|---|---|
--config, -c | auto | Config file path |
--webhook | false | Use webhook mode |
stop
Stop the running service:
uv run ash service stoprestart
Restart the service:
uv run ash service restartstatus
Check service status:
uv run ash service statusShows:
- Running state
- PID
- Uptime
logs
View service logs:
uv run ash service logsOptions:
| Option | Default | Description |
|---|---|---|
--follow, -f | false | Follow log output |
--lines, -n | 50 | Number of lines |
install
Install as a system service:
uv run ash service installCreates a systemd unit file (Linux) or launchd plist (macOS).
uninstall
Remove system service:
uv run ash service uninstallExamples
Start in background:
uv run ash service startCheck if running:
uv run ash service statusFollow logs:
uv run ash service logs -fInstall for auto-start:
uv run ash service installsudo systemctl enable ash