m15o.net /wombat/bin/bat

NAME

bat - process manager

DESCRIPTION

Bat is started automatically. It mounts /srv/proc/ and serves one directory per running process named by its pid. Each process directory contains:

To start a process, put a record to /srv/proc/new, get the new path back.

To restart pid, put a record to /srv/proc/pid/.

To kill a process, del /srv/proc/pid/.

EXAMPLES

Start an anonymous process, get the path to its directory back:

p = req('put', '/srv/proc/new', '/bin/cons')

req('put', p, '/bin/cons') // restart
req('del', p)              // kill

Start a named process:

req('put', '/srv/proc/cons', '/bin/cons')

req('put', '/srv/proc/cons', '/bin/cons') // restart
req('del', '/srv/proc/cons')              // kill

FILES

/lib/ns default binds

SOURCE

/bat

SEE ALSO

wombat/bin/foo reactive(site:notes)