• 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
Load launchd job immediately, without restart - how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Load launchd job immediately, without restart - how?


  • Subject: Load launchd job immediately, without restart - how?
  • From: Dimitris Roilidis <email@hidden>
  • Date: Sun, 28 Sep 2008 17:49:46 +0300

I have a PrefPane that acts as a ui for a command line utility (helper). According to the launchd docs, all I need to do is add the correct plist to the /LaunchAgents folder. However, this will take effect after a restart, which is unacceptable. To load the helper immediately, I need to go through launchctl.

So here's my problem: there are virtually no docs on how to use launchctl programmatically, and the sporadic comments google turned up on the subject say it's not worth the trouble. However, I can't seem to find a "recommended" alternative. It's my understanding that the alternative possibly involves a script to call launchctl, but how would this work, and more importantly, how would it be integrated into the PrefPane code?

Any insight would be greatly appreciated!

Thanks
D. Rolidis
_______________________________________________

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: Load launchd job immediately, without restart - how?
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Two questions about cocoa programming...
  • Next by Date: Problem setting the menu
  • Previous by thread: Re: Two questions about cocoa programming...
  • Next by thread: Re: Load launchd job immediately, without restart - how?
  • Index(es):
    • Date
    • Thread