0

My desktop is configured in such a way that a sudden power loss (or abrupt restart) would result in absolutely no data lost. I therefore want to make sure that updates can always install on schedule and that I don't have to manually close any programs when clicking the Restart button.

How do I force Mac to always restart without delay, completely ignoring whatever software might be running in the background?

  • There are various command line options for shutting down or restarting your Mac right away. Are you OK with command line, or are you looking for an immediate shutdown via the GUI? – jefe2000 Jan 24 '18 at 17:19
  • @jefe2000 command-line options are OK, but I also want the GUI to work immediately and I want scheduled updates to run without interruption. – JonathanReez Jan 24 '18 at 17:20
  • Well, I don't know if this responds to the scheduled updates part of your query, but take a look at the shutdown (ss64.com/osx/shutdown.html) and launchctl reboot (ss64.com/osx/launchctl.html) command line tools. – jefe2000 Jan 24 '18 at 17:53
1

In my experience the best way to keep apps from blocking an update install is to just close all GUI apps before going to bed - or putting my machine "to sleep".

I've also noticed that I need to logout of Terminal, especially.

0

There's really no "non-hacky" way of doing way you want.

You have a really special use case which is extremely rare. If you really want to do this, you should hook up a script or similar to detect when the automatic update window comes up and let that trigger simply closing all your programs (for example with the "kill -9" command).

If you just want to force a reboot, you can do that with the "shutdown -h now" command from the command line, but that will not ensure that updates are automatically installed.

You can refer to this answer to see how you can create an easy way of force rebooting the system no matter which GUI programs, you have running:

How to prevent apps from from not letting you to restart Mac OS

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .