<dhess>
Anyone around who has written a nix-darwin service, specifically with launchd.daemons?
<dhess>
There appears to be no way to run a command when the service is stopped, looks like a launchd limitation... but maybe there's a clever way to do it
<LnL>
kind of, what's up?
<dhess>
LnL: hi!
<dhess>
see above; any way to run a command when launchd stops a service?
<dhess>
this is needed for, e.g., WireGuard, which wants you to run "wg-quick down" to stop the interface.
<LnL>
hmm, don't think so
<dhess>
yeah that's a major flaw in launchd!
<dhess>
LnL: any idea what signal launchd sends to a process that it wants to stop?