• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Launchd timeout messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Launchd timeout messages
      • From: Jason Coco <email@hidden>
  • Prev by Date: Re: Return and Enter don't "behave" in Text Field (Newb)
  • Next by Date: Re: Launchd timeout messages
  • Previous by thread: Re: (Solved!) Return and Enter don't "behave" in Text Field (Newb)
  • Next by thread: Re: Launchd timeout messages
  • Index(es):
    • Date
    • Thread