I have a forking tcp server that allows clients to connect and query my datasets. I have multiple datasets and would like to run a server for each dataset on a different port. I built my server based on the Perl Cookbook Pre-forking server and it works as expected.
My problem is when I want to start multiple servers from the same script with each server using options from an array to determine what dataset is used. Essentially, each loop passes the name of the DB for that dataset.
My first attempt was to loop through my datasource variables and pass them to the forking server, but the loop pauses on the first server until I ctrl-c.
I was hoping a fellow monk could point me in the right direction for starting multiple forking servers from the same script.