daemon & scheduler
Background service and scheduled task management
astonish daemon
Section titled “astonish daemon”Manage the Astonish background service.
Subcommands
Section titled “Subcommands”| Subcommand | Description |
|---|---|
install | Install as system service (launchd on macOS, systemd on Linux) |
uninstall | Remove the system service |
start | Start the daemon |
stop | Stop the daemon |
restart | Restart the daemon |
status | Show daemon status |
run | Run in foreground (for debugging) |
logs | Show daemon logs |
daemon install and daemon run support --port (default: 9393).
daemon logs supports -f (follow) and -n (line count, default: 50).
Examples
Section titled “Examples”astonish daemon install # Install as system serviceastonish daemon start # Start the service (run after install)astonish daemon status # Check if runningastonish daemon logs -f # Follow live logsastonish daemon run --port 8080 # Foreground on custom portastonish scheduler
Section titled “astonish scheduler”Manage scheduled jobs. Jobs are typically created through chat (ask the AI to schedule something) or via the schedule_job tool.
Subcommands
Section titled “Subcommands”| Subcommand | Aliases | Description |
|---|---|---|
list | ls | List all scheduled jobs |
enable <name> | Enable a job | |
disable <name> | Disable a job | |
remove <name> | rm | Remove a job |
run <name> | Trigger immediate execution | |
status | Show scheduler status |
Job names support partial matching and case-insensitive lookup.
Examples
Section titled “Examples”astonish scheduler list # List all jobsastonish scheduler run "daily-report" # Trigger nowastonish scheduler disable "daily-report" # Pause a job