OT LaunchDaemon

Brandon Allbery allbery.b at gmail.com
Sat Oct 1 20:53:34 PDT 2016


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 s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20161001/b7c5255b/attachment.html>


More information about the macports-users mailing list