[mythtv-users] OS X Installer Updated - March 2015

George Nassas gnassas at mac.com
Mon Mar 23 02:21:59 UTC 2015


On Mar 22, 2015, at 10:49 AM, Craig Treleaven <ctreleaven at cogeco.ca> wrote:

> I have yet to find good, basic documentation of launchctl/launchd. It is one of those things where you have to understand how it works before you can understand the documentation of how to work it!

Apple has pretty good documentation. The man pages for launchd, launchd.plist, and launchctl are a start, there’s more at:

	https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html <https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html>

and also Dave Zarzycki, the author, gave a Google talk that you can find at https://www.youtube.com/watch?v=cD_s6Fjdri8 <https://www.youtube.com/watch?v=cD_s6Fjdri8>. I went through all those when launchd first appeared with Tiger which was a while ago so some of my recollections may be hazy but…

>> so if the file is in /Library/LaunchDaemons it's definitely going to do something at load and also on each boot.
> Sorry, no.  Those keys are there, but one HAS to use launchctl to load a job definition; launchd only starts jobs that launchctl has told it to.

…
> The plist files always sit in '/Library/LaunchDaemons/' but don't do anything until the 'launchctl load ...' command.


This is incorrect. I just created a script to touch some files in /tmp, a launchd config in /Library/LaunchDaemons to start it, didn’t run launchctl, rebooted, and sure enough it ran. That matches what it says in the Apple document I link above under "The launchd Startup Process”, in the launchd.info site you mention under "Automatic Loading of Job Definitions”, and also my personal experience. The launchd.info site does describe an override database which I wasn’t aware of so good find.

- George

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20150322/c96c285a/attachment.html>


More information about the mythtv-users mailing list