in reply to Running multiple instances of a daemon simultaneously?
I just reviewed the docs for Proc::Daemon and don't see where the difficulty lies in running multiple instances. What's giving you the problem?
As you mention, the code in the link provided does want to use a single daemon, though it doesn't look like it would be all that difficult to modify. To do so, I'd suggest adding a PID command line argument to tell the daemons apart, and make sure the run function displays the pid of the new daemon. Finally, if the PID argument passed in was 0 or LIST or some such, it would just list all matching daemons.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Running multiple instances of a daemon simultaneously?
by Trenin (Initiate) on Aug 07, 2014 at 17:03 UTC | |
by roboticus (Chancellor) on Aug 08, 2014 at 15:01 UTC | |
by Trenin (Initiate) on Aug 12, 2014 at 13:36 UTC |