Mac Launchd

mac

https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html
https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/ScheduledJobs.html
http://launchd.info/
http://www.acousticwebdesign.net/programming/creating-start-up-items-in-mac-os-x/
https://robots.thoughtbot.com/example-writing-a-launch-agent-for-apples-launchd
http://paul.annesley.cc/2012/09/mac-os-x-launchd-is-cool/
http://superuser.com/questions/229773/run-command-on-startup-login-mac-os-x
http://alvinalexander.com/mac-os-x/mac-osx-startup-crontab-launchd-jobs

How to learn by example?

A great source for Mac launchd examples are these two directories on your Mac OS X system:

/System/Library/LaunchAgents
/System/Library/LaunchDaemons

These Mac folders have dozens of launchd plist example files. Be careful not to edit these files in place, as they are important to how your Mac OS X system runs. Just browse them in place, or copy them to another location if you want to really dig into them.

How to create a .plist file?

Use Lingon. It is a GUI application for creating .plist file. It is a bit slow, but it works.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License