[launchd-dev] Adding KeepAlive in LauchDaemon plist

Jerry Krinock jerry at ieee.org
Tue Sep 20 08:08:27 PDT 2011


On 2011 Sep 20, at 07:14, Karthikeyan M wrote:

> I tried adding <key>KeepAlive</key> in the Launch Daemon(below) created but this keeps on running the Program Arguments resulting in multiple process of the same binary.

That's really weird.  If launchd thinks that a KeepAlive process is not running, it will try to relaunch every 10 seconds.  So, I would expect you'd have 12 processes running after 2 minutes, 24 processes after 4 minutes, etc.

Is that what you are seeing?



More information about the launchd-dev mailing list