Skip to content

ash service

Run Ash as a background service for persistent operation.

Usage

Terminal window
uv run ash service COMMAND [OPTIONS]

Commands

start

Start Ash as a background service:

Terminal window
uv run ash service start

Options:

OptionDefaultDescription
--config, -cautoConfig file path
--webhookfalseUse webhook mode

stop

Stop the running service:

Terminal window
uv run ash service stop

restart

Restart the service:

Terminal window
uv run ash service restart

status

Check service status:

Terminal window
uv run ash service status

Shows:

  • Running state
  • PID
  • Uptime

logs

View service logs:

Terminal window
uv run ash service logs

Options:

OptionDefaultDescription
--follow, -ffalseFollow log output
--lines, -n50Number of lines

install

Install as a system service:

Terminal window
uv run ash service install

Creates a systemd unit file (Linux) or launchd plist (macOS).

uninstall

Remove system service:

Terminal window
uv run ash service uninstall

Examples

Start in background:

Terminal window
uv run ash service start

Check if running:

Terminal window
uv run ash service status

Follow logs:

Terminal window
uv run ash service logs -f

Install for auto-start:

Terminal window
uv run ash service install
sudo systemctl enable ash