NuSkooler / enigma-bbs

ENiGMA½ BBS Software
https://nuskooler.github.io/enigma-bbs/
BSD 2-Clause "Simplified" License
549 stars 105 forks source link

Starting a second instance on the same host doesn't throw an error or exit #547

Open voipmeister opened 3 months ago

voipmeister commented 3 months ago

Describe the Bug Not quite a bug (but no feature either I think), but while checking different versions of Node and Enigma I accidentally started a second instance. The second instance wasn't bound to port 8888/tcp ofcourse, but there was no warning message either. Would be nice to have a warning message and exit IMHO.

To Reproduce Any relevant steps to reproduce the behavior: Deploy a second installation of Enigma on the same host; start the first instance and the start the second instance.

Desired Behavior Would be nice to have a warning message and exit IMHO.

Actual Behavior The second instance isn't bound to port 8888/tcp and there's no warning message either.

Environment

NuSkooler commented 3 months ago

@voipmeister There should be errors in your log about binding to ports already in use. Enigma doesn't just panic and exit in this case, however.

voipmeister commented 3 months ago

Understood. Would it be possible to provide a little feedback on the console though? Granted, in production you'd not run into this often or easily, but I'm testing with various installs on the same VM and well... You know :)