[go: up one dir, main page]

File: reboot.8

package info (click to toggle)
upstart 1.11-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 12,988 kB
  • ctags: 2,100
  • sloc: ansic: 67,932; sh: 12,339; python: 1,718; makefile: 1,093; xml: 162; sed: 16
file content (101 lines) | stat: -rw-r--r-- 2,153 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.TH reboot 8 2009-07-09 "Upstart"
.\"
.SH NAME
reboot, halt, poweroff \- reboot or stop the system
.\"
.SH SYNOPSIS
\fBreboot\fR [\fIOPTION\fR]...
.RI [ REBOOTCOMMAND ]

\fBhalt\fR [\fIOPTION\fR]...

\fBpoweroff\fR [\fIOPTION\fR]...
.\"
.SH DESCRIPTION
These programs allow a system administrator to
.BR reboot ", " halt " or " poweroff
the system.

When called with
.I --force
or when in runlevel
.B 0
or
.BR 6 ,
this tool invokes the
.BR reboot (2)
system call itself (with REBOOTCOMMAND argument passed) and directly
reboots the system.  Otherwise this simply invokes the
.BR shutdown (8)
tool with the appropriate arguments without passing REBOOTCOMMAND
argument.

Before invoking
.BR reboot (2),
a shutdown time record is first written to
.I /var/log/wtmp
.\"
.SH OPTIONS
.TP
.BR -f ", " --force
Does not invoke
.BR shutdown (8)
and instead performs the actual action you would expect from the name.
.\"
.TP
.BR -p ", " --poweroff
Instructs the
.B halt
command to instead behave as
.BR poweroff .
.\"
.TP
.BR -w ", " --wtmp-only
Does not call
.BR shutdown(8)
or the
.BR reboot(2)
system call and instead only writes the shutdown record to
.I /var/log/wtmp
.\"
.TP
.B --verbose
Outputs slightly more verbose messages when rebooting, useful for debugging
problems with shutdown.
.\"
.SH ENVIRONMENT
.TP
.B RUNLEVEL
.B reboot
will read the current runlevel from this environment variable if set in
preference to reading from
.I /var/run/utmp
.\"
.SH FILES
.TP
.I /var/run/utmp
Where the current runlevel will be read from; this file will also be updated
with the runlevel record being replaced by a shutdown time record.
.\"
.TP
.I /var/log/wtmp
A new runlevel record for the shutdown time will be appended to this file.
.\"
.SH AUTHOR
Written by Scott James Remnant
.RB < scott@netsplit.com >
.\"
.SH REPORTING BUGS
Report bugs at
.RB < https://launchpad.net/upstart/+bugs >
.\"
.SH COPYRIGHT
Copyright \(co 2009 Canonical Ltd.
.br
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
.\"
.SH SEE ALSO
.BR shutdown (8)
.BR telinit (8)
.BR runlevel (8)