Home

Awesome

Pup - Universal Process Manager

PUP

Pup is a powerful universal process manager developed with JavaScript, designed to keep your scripts, applications and services alive.

For detailed documentation, visit pup.56k.guru.

Key Features

Note: Programmatic usage, process telemetry, and IPC are currently available only when running Deno client processes.

Quick Start

Installation

To install Pup, make sure you run the latest version of your runtime environment, then open your terminal and execute the following command:

Deno:

deno run -Ar jsr:@pup/pup setup

This command downloads the latest version of Pup and installs it on your system. Read more about release channels here.

Configuration and Usage

Pup revolves around instance configuration files, where each managed process belongs to an instance defined by a pup.json. This file can either be created manually, or by the command line helpers used below:

  1. To create a simple instances running a single process:

    pup init --id "my-server" --autostart --cmd "deno run -A server.ts"

    If you intend to create multiple pup instances on the same server, you can pass an instance name through --name my-instance-name. This name will also be used as the system service name.

  2. (Optional) In case you have an additional task to execute, such as a cleanup script, you can make use of pup append. The following example shows how to add an extra task that use the cron start policy:

    pup append --id "my-task" --cmd "deno run -A task.ts" --cron "0 0 * * * *"

  3. (Optional) Test your instance by running it foreground using pup run (exit by pressing CTRL+C):

  4. To make your instance run at boot, enable it using pup enable-service.

    Will by default use the instance name for service name, which defaults to pup. You can override by passing -n my-custom-name.

  5. To stream the logs from a running instance, use the command pup monitor. To show historic logs, use pup logs.

    Will by default use the instance name for service name, which defaults to pup. You can override by passing -n my-custom-name.

For the full manual, see https://pup.56k.guru

Single command example

It is also possible to use pup to keep a process alive temporary, without a pup.json or system service.

To achieve this, use pup run with --cmd and a start policy.

pup run --autostart --cmd "deno run server.ts"

Example setups

Full examples available at /docs/src/examples

Release channels

Note Built-in plugins, such as splunk-hec and webinterace does not work with canary versions right now.

Each channel serves different purposes, so choose the one that best fits your needs and requirements.

Contributions and Development

Contributions to Pup are very welcome! Please read the contributing section of the manual, fork the repository, make your changes, and submit a pull request.

We appreciate all feedback and contributions that help make Pup better!

Examples of areas that need extra attention right now