Skip to content

nashaddams/supervisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supervisor

JSR JSR score

A supervisor for managing executable services.

Usage

deno run -A jsr:@nashaddams/supervisor [--help]

Starting services

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.ts
deno run -A jsr:@nashaddams/supervisor start

Stopping services

deno run -A jsr:@nashaddams/supervisor stop

Printing the service status

deno run -A jsr:@nashaddams/supervisor status
┌─────────┬─────────────┐
│ Service │ Status      │
├─────────┼─────────────┤
│ argon   │ not running │
├─────────┼─────────────┤
│ cobalt  │ not running │
├─────────┼─────────────┤
│ neon    │ running     │
└─────────┴─────────────┘

Compiling Deno executables

By providing the compile properties to a service, supervisor will create standalone Deno executables for later use:

deno run -A jsr:@nashaddams/supervisor compile

Library usage

Alternatively, 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.

About

A supervisor for managing executable services.

Topics

Resources

License

Stars

Watchers

Forks