DarthSim / overmind

Process manager for Procfile-based applications and tmux
MIT License
2.82k stars 79 forks source link

Show process status and/or command to query for process status #108

Closed holic closed 2 years ago

holic commented 3 years ago

I have a Procfile with ~10 processes that throw out a lot of output. Sometimes one will crash, but I'll miss the log lines and something weird in my app will break. It takes me a bit of time to figure out which service broke/which to restart.

It'd be great if Overmind had some static line at the bottom of the logs that reported the status of each process, e.g.

frontend | example log line
backend  | example log line
api      | example log line
[api] [backend] [frontend]

Where each of the [process] indicators could be color coded for status (e.g. green for up and red for down).

Alternatively, or additionally, it'd be nice to have a overmind status backend or similar to find out if an Overmind-managed process is up or down. Then I could build some of my own tooling for the status bar that I want.

samtgarson commented 3 years ago

+1 for this, I leave my processes running in the background with auto-restart turned on, but sometimes I forget whether I killed it before lunch or if they're still running, or often want to check if one has indeed crashed.

Short of echoing and exiting again, there seems to be no way of doing this—an overmind status command would be super useful.

@DarthSim would you accept a PR for this?

DarthSim commented 3 years ago

@samtgarson sure, PRs are always welcome :)

DarthSim commented 2 years ago

Added overmind ps to v2.3.0

samtgarson commented 2 years ago

Great, thanks! 🎉

holic commented 2 years ago

Thank you! 🙌