Unitech / Unitech/pm2

Pm2 empty when user disconnected

Open
#5,131 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

Good morning,
I installed pm2 to launch a node application as a web service. I can start the services with the "pm2 start" command and keep them active in case of a server restart with a scheduled operation.
However, I am not able to keep the service active in case of user disconnection.
I also tried to install pm2 as a service through the "pm2-service-install" command. The service remains active but "pm2 list" appears empty.
I have tried searching online but cannot find a solution despite having tried several alternatives.
Can you help me?

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

Reproduce the reported flow with pm2 start, disconnect the user, and then run pm2 list; also test the pm2-service-install command mentioned in the report. Compare the service state and process list before and after disconnection, and document a reproducible cause and verified resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.