📄 boot-shutdown.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="generator" content="HTML Tidy, see www.w3.org" /><title>Shutdown Sequence</title><meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" /><link rel="HOME" title="FreeBSD Handbook" href="index.html" /><link rel="UP" title="The FreeBSD Booting Process" href="boot.html" /><link rel="PREVIOUS" title="Init: Process Control Initialization"href="boot-init.html" /><link rel="NEXT" title="Users and Basic Account Management" href="users.html" /><link rel="STYLESHEET" type="text/css" href="docbook.css" /></head><body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"alink="#0000FF"><div class="NAVHEADER"><table summary="Header navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><th colspan="3" align="center">FreeBSD Handbook</th></tr><tr><td width="10%" align="left" valign="bottom"><a href="boot-init.html"accesskey="P">Prev</a></td><td width="80%" align="center" valign="bottom">Chapter 12 The FreeBSD BootingProcess</td><td width="10%" align="right" valign="bottom"><a href="users.html"accesskey="N">Next</a></td></tr></table><hr align="LEFT" width="100%" /></div><div class="SECT1"><h1 class="SECT1"><a id="BOOT-SHUTDOWN" name="BOOT-SHUTDOWN">12.7 ShutdownSequence</a></h1><p>Upon controlled shutdown, via <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=shutdown&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">shutdown</span>(8)</span></a>, <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=init&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">init</span>(8)</span></a> will attemptto run the script <tt class="FILENAME">/etc/rc.shutdown</tt>, and then proceed to sendall processes the <var class="LITERAL">TERM</var> signal, and subsequently the <varclass="LITERAL">KILL</var> signal to any that do not terminate timely.</p><p>To power down a FreeBSD machine on architectures and systems that support powermanagement, simply use the command <tt class="COMMAND">shutdown -p now</tt> to turn thepower off immediately. To just reboot a FreeBSD system, just use <ttclass="COMMAND">shutdown -r now</tt>. You need to be <tt class="USERNAME">root</tt> or amember of <tt class="GROUPNAME">operator</tt> group to run <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=shutdown&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">shutdown</span>(8)</span></a>. The <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=halt&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">halt</span>(8)</span></a> and <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=reboot&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">reboot</span>(8)</span></a> commands canalso be used, please refer to their manual pages and to <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=shutdown&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">shutdown</span>(8)</span></a>'s one formore informations.</p><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> Power management requires <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=acpi&sektion=4"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">acpi</span>(4)</span></a> support in thekernel or loaded as module for FreeBSD 5.X and <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=apm&sektion=4"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">apm</span>(4)</span></a> support forFreeBSD 4.X.</p></blockquote></div></div><div class="NAVFOOTER"><hr align="LEFT" width="100%" /><table summary="Footer navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="boot-init.html"accesskey="P">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html"accesskey="H">Home</a></td><td width="33%" align="right" valign="top"><a href="users.html"accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Init: Process Control Initialization</td><td width="34%" align="center" valign="top"><a href="boot.html" accesskey="U">Up</a></td><td width="33%" align="right" valign="top">Users and Basic Account Management</td></tr></table></div><p align="center"><small>This, and other documents, can be downloaded from <ahref="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a>.</small></p><p align="center"><small>For questions about FreeBSD, read the <ahref="http://www.FreeBSD.org/docs.html">documentation</a> before contacting <<ahref="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>>.<br />For questions about this documentation, e-mail <<ahref="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>>.</small></p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -