2017-04-07 03:43:59 +05:30
|
|
|
.\" Copyright (c) 2017 The OpenRC Authors.
|
|
|
|
.\" See the Authors file at the top-level directory of this distribution and
|
2021-12-21 06:37:00 +05:30
|
|
|
.\" https://github.com/OpenRC/openrc/blob/HEAD/AUTHORS
|
2017-04-07 03:43:59 +05:30
|
|
|
.\"
|
|
|
|
.\" This file is part of OpenRC. It is subject to the license terms in
|
|
|
|
.\" the LICENSE file found in the top-level directory of this
|
2021-12-21 06:37:00 +05:30
|
|
|
.\" distribution and at https://github.com/OpenRC/openrc/blob/HEAD/LICENSE
|
2017-04-07 03:43:59 +05:30
|
|
|
.\" This file may not be copied, modified, propagated, or distributed
|
|
|
|
.\" except according to the terms contained in the LICENSE file.
|
|
|
|
.\"
|
2017-05-22 22:45:15 +05:30
|
|
|
.Dd May 22, 2017
|
2017-04-07 03:43:59 +05:30
|
|
|
.Dt openrc-shutdown 8 SMM
|
|
|
|
.Os OpenRC
|
|
|
|
.Sh NAME
|
|
|
|
.Nm openrc-shutdown
|
|
|
|
.Nd bring the system down
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2018-10-06 00:40:59 +05:30
|
|
|
.Op Fl c , -cancel
|
2019-02-07 04:23:49 +05:30
|
|
|
.Nm
|
|
|
|
.Op Fl R , -reexec
|
|
|
|
.Nm
|
|
|
|
.Op Fl w , -write-only
|
|
|
|
.Nm
|
2017-06-07 21:58:01 +05:30
|
|
|
.Op Fl d , -no-write
|
|
|
|
.Op Fl D , -dry-run
|
2017-04-07 03:43:59 +05:30
|
|
|
.Op Fl H , -halt
|
2019-02-07 04:23:49 +05:30
|
|
|
time
|
|
|
|
.Nm
|
|
|
|
.Op Fl d , -no-write
|
|
|
|
.Op Fl D , -dry-run
|
2017-04-07 03:43:59 +05:30
|
|
|
.Op Fl k , -kexec
|
2019-02-07 04:23:49 +05:30
|
|
|
time
|
|
|
|
.Nm
|
|
|
|
.Op Fl d , -no-write
|
|
|
|
.Op Fl D , -dry-run
|
2017-04-07 03:43:59 +05:30
|
|
|
.Op Fl p , -poweroff
|
2019-02-07 04:23:49 +05:30
|
|
|
time
|
|
|
|
.Nm
|
|
|
|
.Op Fl d , -no-write
|
|
|
|
.Op Fl D , -dry-run
|
2017-04-07 03:43:59 +05:30
|
|
|
.Op Fl r , -reboot
|
2019-02-07 04:23:49 +05:30
|
|
|
time
|
|
|
|
.Nm
|
|
|
|
.Op Fl d , -no-write
|
|
|
|
.Op Fl D , -dry-run
|
2017-06-07 21:58:01 +05:30
|
|
|
.Op Fl s , -single
|
2019-02-07 04:23:49 +05:30
|
|
|
time
|
2017-04-07 03:43:59 +05:30
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2017-06-07 21:58:01 +05:30
|
|
|
is the utility that communicates with
|
|
|
|
.Xr openrc-init 8
|
|
|
|
to bring down the system or instruct openrc-init to re-execute itself.
|
|
|
|
It supports the following options:
|
2017-04-07 03:43:59 +05:30
|
|
|
.Bl -tag -width "poweroff"
|
2018-10-06 00:40:59 +05:30
|
|
|
.It Fl c , -cancel
|
|
|
|
Cancel a pending shutdown.
|
2017-06-07 21:58:01 +05:30
|
|
|
.It Fl d , -no-write
|
|
|
|
Do not write the wtmp boot record.
|
|
|
|
.It Fl D , -dry-run
|
2017-05-22 23:12:37 +05:30
|
|
|
Print the action that would be taken without executing it. This is to
|
|
|
|
allow testing.
|
2017-04-07 03:43:59 +05:30
|
|
|
.It Fl H , -halt
|
|
|
|
Stop all services, kill all remaining processes and halt the system.
|
|
|
|
.It Fl k , -kexec
|
|
|
|
Stop all services, kill all processes and boot directly into a new
|
2017-06-07 21:58:01 +05:30
|
|
|
kernel loaded via
|
|
|
|
.Xr kexec 8 .
|
2017-04-07 03:43:59 +05:30
|
|
|
.It Fl p , -poweroff
|
|
|
|
Stop all services, kill all processes and power off the system.
|
2017-04-13 04:26:30 +05:30
|
|
|
.It Fl R , -reexec
|
|
|
|
instruct openrc-init to re-exec itself. This should be used after an
|
|
|
|
upgrade of OpenRC if you are using openrc-init as your init process.
|
2017-04-07 03:43:59 +05:30
|
|
|
.It Fl r , -reboot
|
|
|
|
Stop all services, kill all processes and reboot the system.
|
2017-06-07 21:58:01 +05:30
|
|
|
.It Fl s , -single
|
|
|
|
Stop all services, kill all processes and move to single user mode.
|
|
|
|
.It Fl w , -write-only
|
2019-02-07 04:23:49 +05:30
|
|
|
Wrrite a wtmp shutdown record and do nothing else.
|
2017-04-07 03:43:59 +05:30
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr openrc-init 8 ,
|
|
|
|
.Xr kexec 8 ,
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An William Hubbs <w.d.hubbs@gmail.com>
|