How to run a few instances of a daemon (agent)?
Hello By default, launchd starts a daemon or an agent, by doing the following 1) either "launchctl load /path/to/daemon.plist" is executed, or the plist is loaded automatically when the system starts 2) "launchctl start" is executed (if <string>RunAnLoad</string> is set to <boolean>false</boolean> then, only one instance is being run. I am wondering, if I could run several instances of the same daemon or agent (using launchd). Would it be possible, or I need to daemonize the process by myself, using an old unix way? Thanks, Nick
On 29 Jun 2011, at 19:04, Nick wrote:
I am wondering, if I could run several instances of the same daemon or agent (using launchd).
Within any given context launchd works hard to ensure that at most one process is running for any given job. If you need multiple processes you have a number of options available to you. What's the reason for the multiple processes? S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
participants (2)
-
Nick
-
Quinn "The Eskimo!"