Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/./man/man8/reboot.8
Real path: /usr/share/man/man8/reboot.8
Zurück
'\" te .\" Portions Copyright (c) 2010, 2022, Oracle and/or its affiliates. .\" Copyright (c) 1983, Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. .TH reboot 8 "16 Dec 2022" "Oracle Solaris 11.4" "System Administration Commands" .SH NAME reboot \- restart the operating system .SH SYNOPSIS .LP .nf \fB/usr/sbin/reboot\fR [\fB-dlnq\fR] [\fB-c\fR \fIcomment\fR] [\fB-f\fR | \fB-p\fR] [\fIboot_arguments\fR] .fi .LP .nf \fB/usr/sbin/reboot\fR [\fB-c\fR \fIcomment\fR] [\fB-f\fR [\fB-e\fR \fIenvironment\fR] | \fB-p\fR] [\fB-dlnq\fR] [\fIboot_arguments\fR] .fi .SH DESCRIPTION .sp .LP The \fBreboot\fR utility restarts the kernel. The kernel is loaded into memory by the PROM monitor, which transfers control to the loaded kernel. .sp .LP When the \fB-f\fR flag is specified, the running kernel will load the next kernel into memory, then transfer control to the newly loaded kernel. This form of \fBreboot\fR is shown in the second synopsis, above. .sp .LP Although \fBreboot\fR can be run at any time, \fBshutdown\fR(8) is normally used instead to warn all users logged in of the impending loss of service and to cleanly stop running services. See \fBshutdown\fR(8) for details. .sp .LP The \fBreboot\fR utility performs a \fBsync\fR(8) operation on the disks, and then a multi-user reboot is initiated. See \fBinit\fR(8) for details. The \fBreboot\fR utility may also update the boot archive as needed to ensure a successful reboot. .sp .LP The \fBreboot\fR utility normally logs the reboot to the system log daemon, \fBsyslogd\fR(8), and places a shutdown record in the login accounting file \fB/var/adm/wtmpx\fR. These actions are inhibited if the \fB-n\fR or \fB-q\fR options are present. .sp .LP Normally, the system reboots itself at power-up or after crashes. .sp .LP The \fBreboot\fR utility must be run with an effective uid of 0, which may be provided by the \fBMaintenance and Repair\fR rights profile. .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fB-c\fR \fIcomment\fR\fR .ad .br .sp .6 .RS 4n Include the supplied \fIcomment\fR in any messages logged and as much of the comment as will fit into the wtmpx record. If a crash dump is being forced make the comment available in the crash dump. The \fIcomment\fR will need to be quoted according to the shell's quoting rules. .RE .sp .ne 2 .mk .na \fB\fB-d\fR\fR .ad .br .sp .6 .RS 4n Force a system crash dump before rebooting. See \fBdumpadm\fR(8) for information on configuring system crash dumps. .RE .sp .ne 2 .mk .na \fB\fB-e\fR \fBenvironment\fR\fR .ad .br .sp .6 .RS 4n If fast rebooting, reboot to the specified boot environment. .RE .sp .ne 2 .mk .na \fB\fB-f\fR\fR .ad .br .sp .6 .RS 4n Fast reboot, bypassing firmware and boot loader. The new kernel will be loaded into memory by the running kernel, and control will be transferred to the newly loaded kernel. If disk or kernel arguments are specified, they must be specified before other boot arguments. .sp See \fBEXAMPLES\fR for details. .RE .sp .ne 2 .mk .na \fB\fB-l\fR\fR .ad .br .sp .6 .RS 4n Suppress sending a message to the system log daemon, \fBsyslogd\fR(8) about who executed \fBreboot\fR. .RE .sp .ne 2 .mk .na \fB\fB-n\fR\fR .ad .br .sp .6 .RS 4n Avoid calling \fBsync\fR(2) and do not log the reboot to \fBsyslogd\fR(8) or to \fB/var/adm/wtmpx\fR. The kernel still attempts to sync filesystems prior to reboot, except if the \fB-d\fR option is also present. If \fB-d\fR is used with \fB-n\fR, the kernel does not attempt to sync file systems. .RE .sp .ne 2 .mk .na \fB\fB-p\fR\fR .ad .br .sp .6 .RS 4n Reboot to prom. This flag can be used to reboot the system through firmware without changing the default reboot behavior as denoted by the \fBconfig/fastreboot_default\fR property setting in \fBsystem/boot-config\fR service. .sp The \fB-p\fR and \fB-f\fR options are mutually exclusive. .RE .sp .ne 2 .mk .na \fB\fB-q\fR\fR .ad .br .sp .6 .RS 4n Quick. Reboot quickly and ungracefully, without shutting down running processes first. .RE .SH OPERANDS .sp .LP The following operands are supported: .sp .ne 2 .mk .na \fB\fIboot_arguments\fR\fR .ad .br .sp .6 .RS 4n An optional \fIboot_arguments\fR specifies arguments to the \fBuadmin\fR(2) function that are passed to the boot program and kernel upon restart. The form and list of arguments is described in the \fBboot\fR(8) and \fBkernel\fR(8) man pages. If the arguments are specified, whitespace between them is replaced by single spaces unless the whitespace is quoted for the shell. If the \fIboot_arguments\fR begin with a hyphen, they must be preceded by the \fB--\fR delimiter (two hyphens) to denote the end of the \fBreboot\fR argument list. .RE .SH EXAMPLES .LP \fBExample 1\fR Passing the \fB-r\fR and \fB-v\fR Arguments to \fBboot\fR .sp .LP In the following example, the delimiter \fB--\fR (two hyphens) must be used to separate the options of \fBreboot\fR from the arguments of \fBboot\fR(8). .sp .in +2 .nf example# \fBreboot -dl -- -rv\fR .fi .in -2 .sp .LP \fBExample 2\fR Rebooting Using a Specific Disk and Kernel .sp .LP The following example reboots using a specific disk and kernel. .sp .in +2 .nf example# \fBreboot disk1 kernel.test/unix\fR .fi .in -2 .sp .LP \fBExample 3\fR Fast Rebooting .sp .LP The following examples use the \fB-f\fR option to perform fast reboots. .sp .LP If the service \fBsvc:/system/boot-config:default\fR is enabled and property \fBconfig/fastreboot_default\fR is set to \fBtrue\fR, the \fB-f\fR option can be omitted. .sp .LP On an x86 system, the following command reboots to the default entry in the GRUB (see \fBgrub\fR(7)) menu file \fBmenu.lst\fR. .sp .in +2 .nf example# \fBreboot -f\fR .fi .in -2 .sp .sp .LP The following command reboots to another ZFS root pool. .sp .in +2 .nf example# \fBreboot -f -- 'rpool/ROOT/root2'\fR .fi .in -2 .sp .sp .LP The following command reboots to \fBmykernel\fR on the same disk with \fB-k\fR option. .sp .in +2 .nf example# \fBreboot -f -- '/platform/i86pc/mykernel/amd64/unix -k'\fR .fi .in -2 .sp .sp .LP The following command reboots to \fBmykernel\fR off another root disk mounted on \fB/mnt\fR. .sp .in +2 .nf example# \fBreboot -f -- '/mnt/platform/i86pc/mykernel/amd64/unix -k'\fR .fi .in -2 .sp .sp .LP The following command reboots to \fB/platform/i86pc/kernel/$ISADIR/unix\fR on another boot environment named \fBsecond_root\fR. .sp .in +2 .nf example# \fBreboot -f -e second_root\fR .fi .in -2 .sp .sp .LP The following command reboots to the same kernel with \fB-kv\fR options. .sp .in +2 .nf example# \fBreboot -f -- '-kv'\fR .fi .in -2 .sp .sp .LP The following commands disable the fast-reboot-by-default behavior. .sp .in +2 .nf example# \fBsvccfg -s "system/boot-config:default" \e\fR \fBsetprop config/fastreboot_default=false\fR example# \fBsvcadm refresh svc:/system/boot-config:default\fR .fi .in -2 .sp .sp .LP The following commands re-enable the fast-reboot-by-default behavior. .sp .in +2 .nf example# \fBsvccfg -s "system/boot-config:default" \e\fR \fBsetprop config/fastreboot_default=true\fR example# \fBsvcadm refresh svc:/system/boot-config:default\fR .fi .in -2 .sp .LP \fBExample 4\fR Rebooting to a Particular GRUB Menu .sp .LP The following commands will reboot to entry \fB2\fR in the GRUB menu. .sp .in +2 .nf example# \fBbootadm list-menu\fR the location for the active GRUB menu is: /rpool/boot/grub/menu.lst default 0 timeout 10 0 zfsbe1 1 zfsbe1 failsafe 2 zfsbe2 3 zfsbe2 Solaris xVM 4 zfsbe2 failsafe example# \fBreboot 2\fR .fi .in -2 .sp .SH FILES .sp .ne 2 .mk .na \fB\fB/var/adm/wtmpx\fR\fR .ad .br .sp .6 .RS 4n login accounting file .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability system/core-os .TE .sp .SH SEE ALSO .sp .LP \fBmdb\fR(1), \fBsync\fR(2), \fBuadmin\fR(2), \fBreboot\fR(3C), \fBwtmpx\fR(5), \fBattributes\fR(7), \fBgrub\fR(7), \fBboot\fR(8), \fBbootadm\fR(8), \fBdumpadm\fR(8), \fBhalt\fR(8), \fBinit\fR(8), \fBkernel\fR(8), \fBshutdown\fR(8), \fBsvcadm\fR(8), \fBsvccfg\fR(8), \fBsync\fR(8), \fBsyslogd\fR(8) .SH NOTES .sp .LP The \fBreboot\fR utility does not execute the scripts in \fB/etc/rc\fInum\fR.d\fR or execute shutdown actions in \fBinittab\fR(5). To ensure a complete shutdown of system services, use the \fBshutdown\fR(8) or \fBinit\fR(8) commands to reboot a Solaris system. Both commands perform a clean shutdown of the system. As such, all file system changes are written to disk, and all system services, processes, and the operating system are terminated normally. System services managed by SMF are shutdown in reverse dependency order.