DarthSim / overmind

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

print a message if overmind is running when starting as a daemon #62

Closed amykyta closed 4 years ago

amykyta commented 4 years ago

Thanks for putting out overmind, great tool. I use it daily and have been running it as a daemon sometimes.

I noticed that if starts attached to a terminal you get a message that overmind is already running elsewhere, but if you run it as a daemon you don't get that feedback and it falsely looks like it succeeds in starting the process as a daemon.

This PR adds a check to see if the UNIX socket is open and if so prints the same message as when you try to start it attached to a terminal.

DarthSim commented 4 years ago

Hi Alex!

Thanks for the contribution, but logick duplication bothers me a little. I solved this issue a bit another way https://github.com/DarthSim/overmind/commit/92fcbf74ca37ed55c6c59b5716cadcd9e6bf8638