NAME
bat - process manager
DESCRIPTION
Bat is the server that runs processes. It is mounted at /srv/proc/, and each process is a directory under it, named after the process. When bat starts for the first time, it resumes all processes that were saved.
| path | verb | action |
|---|---|---|
| /srv/proc/ | GET | List all processes |
| /srv/proc/new | PUT | Create a new anonymous process |
| /srv/proc/{name}/ | GET | List process resources |
| /srv/proc/{name}/exec | PUT | Create a new named process |
| /srv/proc/{name}/ | DEL | Delete a process |
Each process has the following resources:
| path | verb | action |
|---|---|---|
| exec | GET | Read the record |
| exec | PUT | Start the named process, or restart it with the given record |
| ns | GET | Read the namespace |
| status | GET | Read the status: starting, started, closing or err |
| err | GET | Read reason for failure when statis is err |
| fs/ | GET | List program's own values |
| ctl | PUT | Send a command |
| command | action |
|---|---|
| close | Close the process |