Files
oldlinux-files/Minix/2.0.0/wwwman/man8/shutdown.8.html
2024-02-19 00:21:39 -05:00

126 lines
3.5 KiB
HTML

<HTML>
<HEAD>
<TITLE>shutdown(8)</TITLE>
</HEAD>
<BODY>
<H1>shutdown(8)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
shutdown - graciously close the system down
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>shutdown</STRONG> [<STRONG>-hrRmk</STRONG>] [<STRONG>-x</STRONG> <EM>code</EM>] [<EM>time</EM>-<EM>specification</EM> [<EM>message</EM>]]
</PRE>
<H2>DESCRIPTION</H2><PRE>
<STRONG>Shutdown</STRONG> is a program which allows a system operator to close down the
system in an nice way. <STRONG>Shutdown</STRONG> informs the users why and when the system
is going down. This warning is issued 10 minutes before shutdown time
and every minute in the last 5 minutes. At this time (5 minutes),
<STRONG>shutdown</STRONG> creates a file <STRONG>/etc/nologin</STRONG> to prevent new users from logging
in.
<STRONG>Shutdown</STRONG> keeps a logfile of shutdowns. Every shutdown is registered in
<STRONG>/usr/adm/wtmp</STRONG>, if this file exists. After these actions, a call is done
to <STRONG><A HREF="../man2/reboot.2.html">reboot(2)</A></STRONG> which actually brings the system down.
<EM>Time</EM>-<EM>specification</EM> may be something like <STRONG>15:00</STRONG>, <STRONG>15.00</STRONG>, <STRONG>+15</STRONG>, or <STRONG>now</STRONG> for a
shutdown at 3pm (twice), 15 minutes from now, or immediately.
The message may be used to describe why the system is going down, it may
also be typed on standard input with the <STRONG>-m</STRONG> option.
</PRE>
<H2>OPTIONS</H2><PRE>
<STRONG>-h</STRONG> This flag prevents the system from rebooting after the shutdown.
The system can now be powered off. This is the default.
<STRONG>-r</STRONG> This flag indicates that the system should reboot after shutting
down.
<STRONG>-R</STRONG> Reboot the system by resetting it. Normally the kernel will try to
return to the Boot Monitor. With <STRONG>-R</STRONG> the system will receive a
hardware reset.
<STRONG>-x</STRONG> <EM>code</EM>
Halt the system and let the Monitor execute the given code as if
typed at the monitor prompt. You can for instance use <STRONG>-x</STRONG> <STRONG>'boot</STRONG> <STRONG>hd0'</STRONG>
as a very fast way to reboot "from the top."
<STRONG>-m</STRONG> Allows the operator to type a shutdown message on standard input,
that will be added to the messages displayed on all terminals.
<STRONG>-k</STRONG> This option gives the possibility of terminating an already started
shutdown. This is only possible if shutdown time has not yet
arrived.
<STRONG>-C</STRONG> Check if the system crashed. This option is not used at shutdown
time, but at reboot time. It tells if the file systems should be
checked by testing if the last entry in the wtmp file is a shutdown
entry. (A crude replacement for a file system clean flag.)
</PRE>
<H2>FILES</H2><PRE>
/usr/adm/wtmp, /etc/nologin, /usr/adm/authlog
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man2/reboot.2.html">reboot(2)</A></STRONG>, <STRONG><A HREF="../man1/wall.1.html">wall(1)</A></STRONG>, <STRONG><A HREF="../man8/halt.8.html">halt(8)</A></STRONG>, <STRONG><A HREF="../man8/boot.8.html">boot(8)</A></STRONG>.
</PRE>
<H2>AUTHOR</H2><PRE>
Edvard Tuinder (v892231@si.hhs.NL)
</PRE>
</BODY>
</HTML>