Launchd timeout messages
Launchd timeout messages
- Subject: Launchd timeout messages
- From: "Tom Fortmann" <email@hidden>
- Date: Mon, 20 Oct 2008 14:52:41 -0500
I need help debugging a problem with a long running daemon running under
launchd. The daemon is being repeatedly killed and restarted. The daemon
follows all of the rules for running under launchd. It is starting
successfully, but then receives a SIGTERM signal after a few seconds
(assumedly from launchd). At the same time I am also seeing
"com.xcapesolutions.mydaemon[3231]: timeout" errors in /var/log/system.log
(again assumedly from launchd).
The following is my current plist file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.xcapesolutions.mydaemon</string>
<key>Disabled</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>mydaemon</string>
<string>-d</string>
</array>
<key>OnDemand</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>ServiceIPC</key>
<false/>
</dict>
</plist>
I've tried it without the ServiceIPC key. I also tried changing ServiceIPC
to true and adding the launchd checkin (as found in SampleD) but that fails
with permission denied errors. Which I found some references too, but no
answers that fit my situation.
My next step is to dig in to the launchd source code, but before I take that
on I figured I would check if anyone else can help.
FYI - I know this is a little off the Cocoa topic, but I didn't see a more
appropriate developer list. If one exist please forgive the intrusion and
point me in the right direction.
Tom Fortmann
Xcape Solutions
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden