Setting a Macintosh (MacMini) to auto restart from the command line.

Recently I have been having some issues with power back home. I am away interstate on a contract and access to the macmini, which is this webserver is somewhat difficult. However there is a way to solve this issue. I searched on google how to enable automatic reboot for Mac OS X and for Power mac’s but came up empty. This will allow you to tell your mac to restart onces power comes back after a blackout. (Only tested on a MacMini – should work on most if not all OpenFirmware macs)
pmset” is a command line utility that will allow you to adjust the Energy Saver preference pane from the command line.

pmset -g will list current settings

pmset autorestart 1 will set it so that the mac mini reboots after a power outage.


Leave a Reply

You must be logged in to post a comment.