u/United-Result-8129

Shutdown/Restart Macbook without prompting

This is for my personal device, and will be done by a background script (launch daemon). How would I shutdown or restart a macbook as soon as it can be safely done to the system, without prompting the user? I'm specifically worried about it happening during a login or logout and interrupting disk/app state.

reddit.com
u/United-Result-8129 — 4 days ago