1shutdown(8)                 System Manager's Manual                shutdown(8)
2
3
4

NAME

6       shutdown - bring the system down
7

SYNOPSIS

9       shutdown [OPTION]...  TIME [MESSAGE]
10

DESCRIPTION

12       shutdown arranges for the system to be brought down in a safe way.  All
13       logged-in users are notified that the system is going down and,  within
14       the last five minutes of TIME, new logins are prevented.
15
16       TIME  may  have  different  formats, the most common is simply the word
17       'now' which will bring the system down immediately.  Other  valid  for‐
18       mats  are  +m,  where m is the number of minutes to wait until shutting
19       down and hh:mm which specifies the time on the 24hr clock.
20
21       Once TIME has elapsed, shutdown sends a request to the  init(8)  daemon
22       to bring the system down into the appropriate runlevel.
23
24       This is performed by emitting the runlevel(7) event, which includes the
25       new runlevel in the RUNLEVEL environment variable as well as the previ‐
26       ous  runlevel  (obtained from the environment or from /var/run/utmp) in
27       the PREVLEVEL variable.  An additional INIT_HALT variable may  be  set,
28       this will contain the value HALT when bringing the system down for halt
29       and POWEROFF when bringing the system down for power off.
30

OPTIONS

32       -r     Requests that the system be rebooted after it has  been  brought
33              down.
34
35       -h     Requests  that  the system be either halted or powered off after
36              it has been brought down, with the choice as to which left up to
37              the system.
38
39       -H     Requests  that  the  system  be halted after it has been brought
40              down.
41
42       -P     Requests that the system  be  powered  off  after  it  has  been
43              brought down.
44
45       -c     Cancels  a  running  shutdown.   TIME is not specified with this
46              option, the first argument is MESSAGE.
47
48       -k     Only send out the warning messages and disable  logins,  do  not
49              actually bring the system down.
50

ENVIRONMENT

52       RUNLEVEL
53              shutdown  will  read  the current runlevel from this environment
54              variable if set in preference to reading from /var/run/utmp
55

FILES

57       /var/run/utmp
58              Where the current runlevel will be read  from;  this  file  will
59              also be updated with the new runlevel.
60
61       /var/log/wtmp
62              A  new runlevel record will be appended to this file for the new
63              runlevel.
64

NOTES

66       The Upstart init(8) daemon does not keep  track  of  runlevels  itself,
67       instead they are implemented entirely by its userspace tools.
68
69       See runlevel(7) for more details.
70

AUTHOR

72       Written by Scott James Remnant <scott@netsplit.com>
73

REPORTING BUGS

75       Report bugs at <https://launchpad.net/upstart/+bugs>
76
78       Copyright © 2009 Canonical Ltd.
79       This is free software; see the source for copying conditions.  There is
80       NO warranty; not even for MERCHANTABILITY or FITNESS FOR  A  PARTICULAR
81       PURPOSE.
82

SEE ALSO

84       runlevel(7) init(8) telinit(8) reboot(8)
85
86
87
88Upstart                           2009-07-09                       shutdown(8)
Impressum