Load launchd job immediately, without restart - how?
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