HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
r
reboot(1M) reboot(1M)
NAME
reboot - reboot the system
SYNOPSIS
/usr/sbin/reboot
[-h-r][-n-s
][-q][-t time][-m message]
/usr/sbin/reboot -R
[-H][-n-s
][-q][-t time][-m message]
DESCRIPTION
The
reboot command terminates all currently executing processes except those essential to the system,
then reboots the system, or halts, or makes the partition ready for reconfig. When invoked without argu-
ments, 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).
-R Shut down the system to a ready to reconfig state and reboot automatically. How-
ever, if the -H option is also specified, the system will not be rebooted automati-
cally. This option is available only on systems that support hardware partitions.
-H Shut down the system to a ready to reconfig state and do not reboot. This option can
be used only in combination with the -R option. This option is available only on sys-
tems that support hardware partitions.
-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 indi-
cated 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.
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
reboot command.
WARNINGS
reboot does not invoke the shutdown scripts associated with subsystems to bring them down in a cau-
tious manner. See shutdown(1M).
If the
-R option is used in a virtual partition environment on a partitionable system, then the requested
reconfiguration will not take place until all the virtual partitions on that hard partition are shut down
and the virtual partition monitor is rebooted.
AUTHOR
reboot was developed by HP and the University of California, Berkeley.
FILES
/etc/shutdownlog Shutdown log
Section 1M−−660 Hewlett-Packard Company − 1 − HP-UX 11i Version 2: August 2003