OT LaunchDaemon

James Linder jam at tigger.ws
Sat Oct 1 21:10:28 PDT 2016


On 2 Oct 2016, at 11:53 AM, Brandon Allbery <allbery.b at gmail.com> wrote:
> 
> 
> On Sat, Oct 1, 2016 at 11:43 PM, James Linder <jam at tigger.ws> wrote:
> I’m trying to run a rc.local at start up
> I created a launchdaemon
> 
> Did you load it? In 10.5 the keys in the launchd plist were sufficient, but this made per-user launchd config difficult; later versions store the "enabled" bit in per-uid databases (including for root) and require you to manipulate that database:
> 
>     launchd load -w /Library/LaunchDaemons/local.startup.plist
> 
> The -w is what updates the database so it will load on subsequent boots.
> 
> I've created several local launchd plists that way, and they work as long as I have specified any dependencies properly (i.e. making sure any needed subsystems are running; the only one that comes to mind for yours is probably diskarbitrationd, but I don't know offhand how you specify a dependency on it).

Brandon many thanks

as the magistrate says “that has a ring of truth to it”
It does not quite work for me (I ran launchctl not launchd) but it certainly will lead to the solution so thanks again
James




More information about the macports-users mailing list