34 Chapter 4 Setting General System Preferences
To set how long the system waits to restart after a power failure:
$ sudo systemsetup -setWaitForStartupAfterPowerFailure seconds
To see if the system is set to restart after a system freeze:
$ sudo systemsetup -getrestartfreeze
To set the system to restart after a system freeze:
$ sudo systemsetup -setrestartfreeze (on|off)
Power Management Settings
You can use the pmset command to change a variety of power management settings,
including:
• Display dim timer
• Disk spindown timer
• System sleep timer
• Wake on network activity
• Wake on modem activity
• Restart after power failure
• Dynamic processor speed change
• Reduce processor speed
• Sleep computer on power button press
For more information, see the pmset man page.
Startup Disk Settings
You can use the systemsetup command to view or change a server’s computer startup
disk, which would otherwise be set using the Startup Disk pane of System Preferences.
Viewing or Changing the Startup Disk
To view the current startup disk:
$ sudo systemsetup -getstartupdisk
To view the available startup disks:
$ sudo systemsetup -liststartupdisks
To change the current startup disk:
$ sudo systemsetup -setstartupdisk path
Parameter Description
seconds
Must be a multiple of 30 seconds.
LL2354.book Page 34 Monday, October 20, 2003 9:47 AM