Pm2 empty when user disconnected
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
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
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