[launchd-dev] The "daemons must live for at least 60 seconds" factoid

Quinn eskimo1 at apple.com
Thu Aug 20 01:13:10 PDT 2009


In addition to what Kevin said...

At 13:16 +0100 19/8/09, Jonathan del Strother wrote:
>It's a commonly repeated piece of folklore that if your launchdaemon
>completes in under 60 seconds, launchd will assume it has crashed and
>will re-launch it.

I think this folklore is a bit mixed up.  It's not that launchd 
assumes that the job crashed, and thus relaunches it, it's that 
launchd will /prevent/ it from being launched again too quickly.  In 
modern versions of launchd (10.5 and later?) the value changed (to 10 
seconds) and you can control the value on a job-by-job basis with the 
ThrottleInterval key (see <x-man-page://5/launchd.plist> for details).

S+E
-- 
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


More information about the launchd-dev mailing list