Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How do you use this?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How do you use this?
Authored by: MacTipper on Apr 23, '08 02:10:43PM

Can somebody please elaborate on how one would apply this to LaunchD?

Thanks in Advance,
MacTipper

---
MacTipper
Check out my mac tip blog



[ Reply to This | # ]
How do you use this?
Authored by: regulus on Apr 23, '08 03:14:38PM

Notice how you set a name in the part "com.domain.whatever". So what you do is save that text file with the name and a ".plist" extension i.e. com.domain.whatever.plist. Then you take that file and put it in your ~/Library/LaunchAgents folder. The next time you logout or reboot your computer launchd will see the file and it will be working.



[ Reply to This | # ]
How do you use this?
Authored by: mjb on Apr 23, '08 05:46:20PM
I imagine you could force the load immediately without a reboot/relogin with launchctl? Perhaps:

$ launchctl load ~/Library/LaunchAgents/com.domain.whatever.plist
(Not a launchd/launchctl guru here, please correct as needed)

[ Reply to This | # ]
How do you use this?
Authored by: mmnw on Apr 24, '08 02:36:18AM
This is perfectly correct. I'd like to add, if you would like to remove the job, you use
launchctl unload ~/Library/LaunchAgents/com.domain.whatever.plist
If you would like to remove the job permanently you should also delete/move the file from that folder (or set the disabled key in the plist file to true, see the man launchd.plist for details). You should also unload and then load again if you modify the .plist file.

[ Reply to This | # ]
How do you use this?
Authored by: Peter_T on Apr 24, '08 12:51:45AM
The best launchd description / tutorial I've found is at afp548 [link:]http://www.afp548.com/article.php?story=2008030421090192

[ Reply to This | # ]
How do you use this?
Authored by: MacTipper on Apr 24, '08 08:38:53AM

Thanks for the help everybody!

MacTipper



[ Reply to This | # ]