3Restarting or Shutting Down a

3

Server

Commands you can use to shut down or restart a local or remote server.

Restarting a Server

You can use the reboot or shutdown -rcommand to restart a server at a specific time. For more information, see the man pages.

Examples

To restart the local server:

$ shutdown -r now

To restart a remote server immediately:

$ ssh -l root server shutdown -r now

To restart a remote server at a specific time:

$ ssh -l root server shutdown -r hhmm

Parameter

Description

server

The IP address or DNS name of the server.

hhmm

The hour and minute when the server restarts.

Automatic Restart

You can also use the systemsetup command to set up the server to start automatically after a power failure or system freeze. See “Viewing or Changing Automatic Restart Settings” on page 33.

29

Page 29
Image 29
Apple oxs manual Examples, Automatic Restart, To restart the local server, To restart a remote server immediately