Skip to content

daemon & scheduler

Background service and scheduled task management

Manage the Astonish background service.

SubcommandDescription
installInstall as system service (launchd on macOS, systemd on Linux)
uninstallRemove the system service
startStart the daemon
stopStop the daemon
restartRestart the daemon
statusShow daemon status
runRun in foreground (for debugging)
logsShow daemon logs

daemon install and daemon run support --port (default: 9393). daemon logs supports -f (follow) and -n (line count, default: 50).

astonish daemon install # Install as system service
astonish daemon start # Start the service (run after install)
astonish daemon status # Check if running
astonish daemon logs -f # Follow live logs
astonish daemon run --port 8080 # Foreground on custom port

Manage scheduled jobs. Jobs are typically created through chat (ask the AI to schedule something) or via the schedule_job tool.

SubcommandAliasesDescription
listlsList all scheduled jobs
enable <name>Enable a job
disable <name>Disable a job
remove <name>rmRemove a job
run <name>Trigger immediate execution
statusShow scheduler status

Job names support partial matching and case-insensitive lookup.

astonish scheduler list # List all jobs
astonish scheduler run "daily-report" # Trigger now
astonish scheduler disable "daily-report" # Pause a job