Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Set system and network prefs from the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set system and network prefs from the Terminal
Authored by: deviantintegral on Dec 16, '04 07:47:59PM

From the help message:
Usage: systemsetup -getrestartfreeze
Display whether restart on freeze is on or off.

Usage: systemsetup -setrestartfreeze <on off>
Set restart on freeze to either <on> or <off>.

Does this mean that I can set my laptop to automatically reboot if it freezes? Or is this an Xserve option?

--Andrew



[ Reply to This | # ]
Set system and network prefs from the Terminal
Authored by: dfbills on Dec 16, '04 11:42:49PM

very interesting- what constitutes a "Freeze?"

---
-d



[ Reply to This | # ]
Set system and network prefs from the Terminal
Authored by: n8gray on Dec 17, '04 04:49:37PM
very interesting- what constitutes a "Freeze?"

In my experience, running VISE installer usually constitutes a freeze before too long...

;^)

[ Reply to This | # ]

Set system and network prefs from the Terminal
Authored by: dreness on Dec 17, '04 05:48:26PM
This is positioned as a server feature, which is why the option is absent from client's Energy Saver preference pane. It is present in pmset, however...
sudo pmset -a autorestart 1
would enable it on an os x server machine.

I think the problem you'll have on client is that a key piece is missing: watchdog. In OS X Server, watchdog's job is to watch a list of key processes and restart them if they die; watchdog also has the ability to reset a timer in the power management unit (PMU). When auto-restart is enabled on a server, this timer is activated and set to 5 minutes. The watchdog process periodically resets the timer. When the timer hits zero, the PMU assumes that wathdog (and most likely the rest of the system) is stuck, and triggers a hard reset.

You can check to see if your hardware supports auto restart by searching in the IO registery (but again, without os x server, I believe it is a moot point).

do a
ioreg -c IOPMrootDomain | grep Features
and then hit command F in the terminal and search for FileServer. Some of the output from my powerbook is shown below. If FileServer = Yes, then your mac should support auto restart.
andre@gyro[~]ioreg -c IOPMrootDomain | grep Features
    | | |   "Supported Features" = {"FileServer"=Yes,"ServerID"=Yes,"WakeOnACchange"=Yes$


[ Reply to This | # ]
Set system and network prefs from the Terminal
Authored by: dreness on Dec 17, '04 05:51:25PM

editor's note: the last bit was written initially with just ioreg -l; in the provided example you probably won't have to do a find for FileServer using terminal's find ;)



[ Reply to This | # ]