Managing port numbers for prodigy recipes

Hi,
I want to database which keeps track of different port numbers that are available to be used for different users. Is there a way that I can manage these port numbers for example by maybe creating a database instance and storing the port numbers and their status (available or not)?

Thank you!!

Hi! I think it makes sense to handle this outside of Prodigy, and one way you could do this would be to have a (shell) script that checks which ports are available, then sets the PRODIGY_PORT environment variable accordingly and starts Prodigy.

Keeping a database of port numbers might be a bit overkill – I think you should be able to just check whether a given port (based on a list of ports) is currently in use.