Make Your Mac Restart Itself After a System Freeze
Enable automatic restart after a freeze so an unattended Mac recovers instead of hanging forever.
01Command
$ sudo systemsetup -setrestartfreeze on && sudo systemsetup -getrestartfreeze02What it does
When the macOS kernel locks up, the hardware watchdog can force an automatic restart instead of leaving a frozen screen. systemsetup -setrestartfreeze on arms that behavior, which is exactly what you want for Macs nobody is watching — home servers, display signs, render machines. It is the scriptable equivalent of the 'Restart automatically if the computer freezes' checkbox.
03Risk
04Undo
$ sudo systemsetup -setrestartfreeze off05Sources
- About systemsetup in Remote DesktopEvidence: Apple's official Remote Desktop guide lists systemsetup commands including -setrestartfreeze for restarting automatically after a system freeze.
- systemsetup(8) man pageEvidence: The systemsetup man page documents -setrestartfreeze on|off (restart automatically after a system freeze) and -getrestartfreeze to display the setting.
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
Filter macOS's single unified log by process, message type, or subsystem straight from the Terminal.
Snapshot an entire app's settings to a plist file, then restore or migrate it later.
Watch every open, write, and stat call happening on your disks and see exactly which process made it.