|
|
|
|
|
by rfmoz
1329 days ago
|
|
The macOS init manager, LaunchD, doesn't offer an easy way to execute an script at shutdown. By definition, it sends a SIGTERM signal to all of the daemons that it started. But as the script isn't started before, and doesn't keep a running PID, you don't have a clean way to do it. I don't understand why they only implemented the SIGTERM call without any alternative. |
|