Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/lib/core/pup.ts>Pup

Universal process manager built in Deno
Go to Latest
class Pup
import { Pup } from "https://deno.land/x/pup@1.0.0-alpha-15/lib/core/pup.ts";

Constructors

new
Pup(
unvalidatedConfiguration: unknown,
statusFile?: string,
ipcFile?: string,
)

Properties

private
requestTerminate: boolean
private
watchdog: () => unknown

Watchdog function that manages process lifecycle events like auto-start, restart, and timeouts.

private
WATCHDOG_INTERVAL_MS: number
configuration: Configuration
init: () => unknown
optional
ipc: FileIPC
logger: Logger
processes: Process[]
status: Status

Methods

private
block(id: string)
private
processIpc()
private
restart(id: string)
private
start(id: string)
private
stop(id: string)
private
terminate(forceQuitMs: number)
private
unblock(id: string)