A supervisor for managing executable services.
deno run -A jsr:@nashaddams/supervisor [--help]Create a supervisor.yml and define the services, e.g.:
services:
argon:
exec: argon/argon
cobalt:
exec: cobalt/cobalt.sh
neon:
exec: neon/neon
compile:
context: neon
module: mod.tsdeno run -A jsr:@nashaddams/supervisor startdeno run -A jsr:@nashaddams/supervisor stopdeno run -A jsr:@nashaddams/supervisor status
┌─────────┬─────────────┐
│ Service │ Status │
├─────────┼─────────────┤
│ argon │ not running │
├─────────┼─────────────┤
│ cobalt │ not running │
├─────────┼─────────────┤
│ neon │ running │
└─────────┴─────────────┘By providing the compile properties to a service, supervisor will create
standalone Deno executables for later use:
deno run -A jsr:@nashaddams/supervisor compileAlternatively, supervisor can also be imported and used as a library class:
import { Supervisor } from "@nashaddams/supervisor";
const supervisor = new Supervisor();See the docs for further details.