HPlogo HP-UX Reference Volume 2 of 5 > r

reboot(1M)

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

NAME

reboot — reboot the system

SYNOPSIS

/usr/sbin/reboot [-h|-r] [-n|-s] [-q] [-t time] [-m message]

DESCRIPTION

The reboot command terminates all currently executing processes except those essential to the system, then halts or reboots the system. When invoked without arguments, reboot syncs all disks before rebooting the system.

Options

The reboot command recognizes the following options:

-h

Shut down the system and halt.

-r

Shut down the system and reboot automatically (default).

-n

Do not sync the file systems before shutdown.

-s

Sync the file systems before shutdown; for file systems that were cleanly mounted, modify the fs_clean flag from FS_OK to FS_CLEAN (default).

-q

Quick and quiet. Suppress broadcast of warning messages, terminate processes by brute force (with SIGKILL) and immediately call reboot with arguments as indicated by the other options (see reboot(2)). No logging is performed. The -t and -m options are ignored with this option.

-t time

Specify what time reboot will bring the system down. time can be the word now (indicating immediate shutdown) or a future time in one of two formats: +number and hour:min. The first form brings the system down in number minutes; the second brings the system down at the time of day indicated (based on a 24-hour clock).

-m message

Display message at the terminals of all users on the system at decreasing intervals as reboot time approaches. The message must not contain any embedded double quotes. options cannot be used together.

At shutdown time a message is written in the file

/etc/shutdownlog

(if it exists), containing the time of shutdown, who ran reboot, and the reason.

Only users with appropriate privileges can execute the shutdown command.

AUTHOR

reboot was developed by HP and the University of California, Berkeley.

FILES

/etc/shutdownlog

Shutdown log

SEE ALSO

reboot(2).

© Hewlett-Packard Development Company, L.P.