Feature req: ability to lock process so it can't be stopped/killed with 1 command
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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