Unitech / Unitech/pm2

Is it possible to bring a process foreground?

Open
#3,563 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Here's my scenario.

I am making a NodeJS server which also provides an administration-purpose terminal GUI (made with blessed)and my server is managed by PM2.

The server is usually running in the background but I am wondering that if there is something like pm2 fg <my_app_name> for me to bring the process foreground when needed.

Currently the workaround is to separate the GUI from the server.
When I need to do administration, I start the GUI process which uses loop-back connection to ask for server data and shows the response on the GUI.
It'll be nice if PM2 can handle this, the GUI then can be integrated with the server.

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 existing CLI process-management commands and the behavior described for pm2 fg <my_app_name>. Clarify how a managed Node.js process and its blessed terminal GUI should move from background to foreground, including how completion would be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.