[darwin] wg-quick command line flag to prevent disown

Celti Burroughs celti at celti.name
Sat Jul 28 23:51:00 CEST 2018


On Saturday, July 28, 2018 1:36:21 PM MST, Niklas Buschmann wrote:
> Hello,
>
> I am using macOS’s launchd to create a boot daemon that runs 
> wg-quick. Now launchd seems to kill the process when wg-quick 
> calls disown[...]

You can stop launchd from garbage-collecting processes via the
plist property "AbandonProcessGroup". See the section "Careful
With That Fork, Eugene" [1] in the launchd documentation for
details on the whole mess.

~Celti

[1]: 
https://developer.apple.com/library/archive/technotes/tn2083/_index.html#//apple_ref/doc/uid/DTS10003794-CH1-SUBSECTION52


More information about the WireGuard mailing list