Hacker News new | ask | show | jobs
by calibwam 4242 days ago
Last commit made 5 months ago, and no updates on the project anywhere. Seems abandoned.
2 comments

Not quite abandoned, more a question of time. The upstream code is sufficiently undocumented and without tests that in some cases my approach has been to #ifdef stuff out until I can at least get some units compiling.

A test suite for this code would have made this whole effort far easier :(

The FreeBSD wiki page[0] has an updates page, with this, from a month and a half ago:

> 20140910: Outback Dingo has made available an older port of pfSense's launchd_xml.

[0] https://wiki.freebsd.org/launchd

The launchd_xml code is mildly toxic for openlaunchd, it's derived off of the Apple Public Source License codebase instead of the newer Apache 2.0 licensed codebase that openlaunchd derives from.

IMO the ASL is going to be required to get FreeBSD to adopt openlaunchd at some point

And a link to the repository: https://github.com/outbackdingo/launchd_xml
Note that the pfsense / outbackdingo launchd did something rather naughty -- it put the xml parser back in pid 1 which was intentionally not there by design at Apple.

tl;dr even if you could convince the FreeBSD devs that launchd is a great idea they wouldn't accept this as-is.

doesn't launchd on osx also parse plist xml files? How are those handled?
There's another binary that does the processing and the data is sent to the launchd daemon over a Mach-specific IPC channel that FreeBSD doesn't have.
OS X has a binary plist format, too. Maybe it uses that to bootstrap and does xml parsing in sub-processes.