Unitech / Unitech/pm2

pm2 Multiple God Daemons Spawning

Open
#5,171 1 comment 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

Expected behavior

Only one God Daemon should spawn using pm2 start
Actual behavior

More than one God Daemon spawns.

My Output of Ps aux | grep pm2
appuser 912 0.0 1.1 574952 43824 ? Sl 08:40 0:00 node /opt/node/bin/pm2 start /opt/pm2-config/scheduler.json
appuser 944 0.0 1.0 574412 42904 ? Sl 08:40 0:00 node /opt/node/bin/pm2 start /opt/pm2-config/push.json
appuser 948 0.0 1.1 575052 44068 ? Sl 08:40 0:00 node /opt/node/bin/pm2 start /opt/pm2-config/api-ui.json
appuser 964 0.0 1.0 574924 43124 ? Sl 08:40 0:00 node /opt/node/bin/pm2 start /opt/pm2-config/ui.json
appuser 973 0.0 1.0 574452 42896 ? Sl 08:40 0:00 node /opt/node/bin/pm2 start /opt/pm2-config/meter.json
appuser 1017 0.0 1.0 575152 43320 ? Sl 08:40 0:00 node /opt/node/bin/pm2 start /opt/pm2-config/dj.json
appuser 1902 0.0 1.0 573132 41424 ? Ssl 08:41 0:00 PM2 v4.2.3: God Daemon (/naught-home/.pm2)
appuser 1903 0.0 1.0 573644 41076 ? Ssl 08:41 0:00 PM2 v4.2.3: God Daemon (/naught-home/.pm2)
appuser 1904 0.0 1.0 573136 41504 ? Ssl 08:41 0:00 PM2 v4.2.3: God Daemon (/naught-home/.pm2)
appuser 1905 0.0 1.0 573140 41772 ? Ssl 08:41 0:00 PM2 v4.2.3: God Daemon (/naught-home/.pm2)
appuser 1906 0.3 1.2 618972 49264 ? Ssl 08:41 0:18 PM2 v4.2.3: God Daemon (/naught-home/.pm2)
appuser 1911 0.0 1.0 573136 41192 ? Ssl 08:41 0:00 PM2 v4.2.3: God Daemon (/naught-home/.pm2)
appuser 1926 0.0 1.0 573128 40984 ? Ssl 08:41 0:00 PM2 v4.2.3: God Daemon (/naught-home/.pm2)
ubuntu 9058 0.0 0.0 13132 1056 pts/0 S+ 10:12 0:00 grep --color=auto pm2
Please search on the issue tracker before creating one.

PM2 version: 5.1.1.
Running pm2 command using init file

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 inspecting how the init file invokes PM2 and reproducing the reported process list with PM2 5.1.1, using the six configuration paths shown in the report. Compare the daemon startup behavior for concurrent commands and confirm that the completed fix leaves only one God Daemon running.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.