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-beta.20/lib/core/pup.ts";

Constructors

new
Pup(unvalidatedConfiguration: unknown, configFilePath?: 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
cleanup: () => unknown
cleanupQueue: string[]
optional
configFilePath: string
configuration: Configuration
events: EventEmitter
init: () => unknown
optional
ipc: FileIPC
logger: Logger
optional
persistentStoragePath: string
plugins: Plugin[]
processes: (Process | Cluster)[]
status: Status
optional
temporaryStoragePath: string

Methods

private
pluginHook(signal: string, args: unknown): boolean
private
processIpc()
block(id: string, requestor: string)
restart(id: string, requestor: string)
start(id: string, requestor: string)
stop(id: string, requestor: string)
terminate(forceQuitMs: number)
unblock(id: string, requestor: string)