Overview
Checks if the Spacebot daemon is running and displays basic status information including process ID and uptime.Usage
Output
When the daemon is running, you’ll see:Examples
Check daemon status
Script usage
Monitor uptime
Status Fields
The process ID of the running daemon. Use this with system tools like
ps, top, or kill.How long the daemon has been running, formatted as
{hours}h {minutes}m {seconds}s.Error Cases
Daemon not running
IPC failure
- PID file exists but daemon is dead (stale PID file)
- IPC socket removed or inaccessible
- Permission issue
Unexpected response
- You’re running incompatible versions
- The IPC socket is corrupt
spacebot restart.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Daemon is running and responsive |
| 1 | Daemon is not running or IPC failed |
What Status Does NOT Show
Thestatus command only checks if the daemon process is alive. It does not show:
- Active channels or conversations
- Worker states
- Memory or CPU usage
- API server status
- Connected messaging platforms
- Error counts or health metrics
http://localhost:19898.
Uptime Calculation
Uptime is calculated from the daemon’s internal start timestamp, not from the PID file creation time. This means:- The uptime survives log rotation
- It’s accurate even if the PID file is touched
- It resets to zero on restart
Process Inspection
Use standard Unix tools with the PID shown byspacebot status:
Related Commands
spacebot start- Start the daemonspacebot stop- Stop the daemon
Implementation Notes
The status command:- Reads
~/.spacebot/spacebot.pidto get the process ID - Sends
IpcCommand::Statusvia Unix domain socket - Receives
IpcResponse::Status { pid, uptime_seconds } - Formats the uptime as
{hours}h {minutes}m {seconds}s