diff options
author | Bobby Rong <rjl931189261@126.com> | 2021-07-03 14:31:57 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2021-07-03 14:31:57 +0800 |
commit | adbe4e34d61a1e6db49a4a4ffec236a1017d9507 (patch) | |
tree | 2e22684dfb4878cf838210ace2e20f6b27a1a647 | |
parent | d37933c01f5bda5ed0d838d28d5e8180559ea953 (diff) | |
download | nixpkgs-adbe4e34d61a1e6db49a4a4ffec236a1017d9507.tar nixpkgs-adbe4e34d61a1e6db49a4a4ffec236a1017d9507.tar.gz nixpkgs-adbe4e34d61a1e6db49a4a4ffec236a1017d9507.tar.bz2 nixpkgs-adbe4e34d61a1e6db49a4a4ffec236a1017d9507.tar.lz nixpkgs-adbe4e34d61a1e6db49a4a4ffec236a1017d9507.tar.xz nixpkgs-adbe4e34d61a1e6db49a4a4ffec236a1017d9507.tar.zst nixpkgs-adbe4e34d61a1e6db49a4a4ffec236a1017d9507.zip |
nixos: nixos/doc/manual/administration/rebooting.xml to CommonMark
4 files changed, 70 insertions, 36 deletions
diff --git a/nixos/doc/manual/administration/rebooting.chapter.md b/nixos/doc/manual/administration/rebooting.chapter.md new file mode 100644 index 00000000000..7a16a3a4ce5 --- /dev/null +++ b/nixos/doc/manual/administration/rebooting.chapter.md @@ -0,0 +1,31 @@ +# Rebooting and Shutting Down {#sec-rebooting} + +The system can be shut down (and automatically powered off) by doing: + +```ShellSession +# shutdown +``` + +This is equivalent to running `systemctl poweroff`. + +To reboot the system, run + +```ShellSession +# reboot +``` + +which is equivalent to `systemctl reboot`. Alternatively, you can +quickly reboot the system using `kexec`, which bypasses the BIOS by +directly loading the new kernel into memory: + +```ShellSession +# systemctl kexec +``` + +The machine can be suspended to RAM (if supported) using `systemctl + suspend`, and suspended to disk using `systemctl + hibernate`. + +These commands can be run by any user who is logged in locally, i.e. on +a virtual console or in X11; otherwise, the user is asked for +authentication. diff --git a/nixos/doc/manual/administration/rebooting.xml b/nixos/doc/manual/administration/rebooting.xml deleted file mode 100644 index c57d885c5f3..00000000000 --- a/nixos/doc/manual/administration/rebooting.xml +++ /dev/null @@ -1,35 +0,0 @@ -<chapter xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:xi="http://www.w3.org/2001/XInclude" - version="5.0" - xml:id="sec-rebooting"> - <title>Rebooting and Shutting Down</title> - <para> - The system can be shut down (and automatically powered off) by doing: -<screen> -<prompt># </prompt>shutdown -</screen> - This is equivalent to running <command>systemctl poweroff</command>. - </para> - <para> - To reboot the system, run -<screen> -<prompt># </prompt>reboot -</screen> - which is equivalent to <command>systemctl reboot</command>. Alternatively, - you can quickly reboot the system using <literal>kexec</literal>, which - bypasses the BIOS by directly loading the new kernel into memory: -<screen> -<prompt># </prompt>systemctl kexec -</screen> - </para> - <para> - The machine can be suspended to RAM (if supported) using <command>systemctl - suspend</command>, and suspended to disk using <command>systemctl - hibernate</command>. - </para> - <para> - These commands can be run by any user who is logged in locally, i.e. on a - virtual console or in X11; otherwise, the user is asked for authentication. - </para> -</chapter> diff --git a/nixos/doc/manual/administration/running.xml b/nixos/doc/manual/administration/running.xml index 73dff469192..30322e7239c 100644 --- a/nixos/doc/manual/administration/running.xml +++ b/nixos/doc/manual/administration/running.xml @@ -11,7 +11,7 @@ </para> </partintro> <xi:include href="../from_md/administration/service-mgmt.chapter.xml" /> - <xi:include href="rebooting.xml" /> + <xi:include href="../from_md/administration/rebooting.chapter.xml" /> <xi:include href="user-sessions.xml" /> <xi:include href="control-groups.xml" /> <xi:include href="logging.xml" /> diff --git a/nixos/doc/manual/from_md/administration/rebooting.chapter.xml b/nixos/doc/manual/from_md/administration/rebooting.chapter.xml new file mode 100644 index 00000000000..78ee75afb64 --- /dev/null +++ b/nixos/doc/manual/from_md/administration/rebooting.chapter.xml @@ -0,0 +1,38 @@ +<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="sec-rebooting"> + <title>Rebooting and Shutting Down</title> + <para> + The system can be shut down (and automatically powered off) by + doing: + </para> + <programlisting> +# shutdown +</programlisting> + <para> + This is equivalent to running <literal>systemctl poweroff</literal>. + </para> + <para> + To reboot the system, run + </para> + <programlisting> +# reboot +</programlisting> + <para> + which is equivalent to <literal>systemctl reboot</literal>. + Alternatively, you can quickly reboot the system using + <literal>kexec</literal>, which bypasses the BIOS by directly + loading the new kernel into memory: + </para> + <programlisting> +# systemctl kexec +</programlisting> + <para> + The machine can be suspended to RAM (if supported) using + <literal>systemctl suspend</literal>, and suspended to disk using + <literal>systemctl hibernate</literal>. + </para> + <para> + These commands can be run by any user who is logged in locally, i.e. + on a virtual console or in X11; otherwise, the user is asked for + authentication. + </para> +</chapter> |