Is it possible to bring a process foreground?
Nobody has claimed this yet.
- 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
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 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