Unitech / Unitech/pm2

Feature req: ability to lock process so it can't be stopped/killed with 1 command

Open
#5,527 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

No issue, but a feature request so hope this is the right place to address.

I'd love for PM2 to have the ability to mark a certain process as locked.
The result would be that this process kind not be stopped/killed (e.g. pm2 stop all) with one command.

Thoughts?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing PM2's process-control entry points, especially the pm2 stop all behavior and how processes are selected for stopping. Define how a locked process should behave for stop and kill commands, then verify the behavior for both locked and ordinary processes with focused tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.