]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/systemd-oomd.service: Document command line options
authorJade Lovelace <jadel@mercury.com>
Wed, 7 Dec 2022 19:34:22 +0000 (11:34 -0800)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 16 Dec 2022 02:32:25 +0000 (11:32 +0900)
Previously these were not written down. This PR depends on #25670, since
`--dry-run` prints at debug level in `main`, which is surprising
behaviour.

man/systemd-oomd.service.xml

index 11c9237645f92f64d2cd41d4a2bf2b266d83ac54..dc02abd307e08e347de2e6055430e3d367c87460 100644 (file)
@@ -3,7 +3,8 @@
   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
 
-<refentry id="systemd-oomd.service" conditional='ENABLE_OOMD'>
+<refentry id="systemd-oomd.service" conditional='ENABLE_OOMD'
+    xmlns:xi="http://www.w3.org/2001/XInclude">
 
   <refentryinfo>
     <title>systemd-oomd.service</title>
     something like <filename>user@$UID.service</filename> may prefer a much lower value like 40%.</para>
   </refsect1>
 
+  <refsect1>
+    <title>Options</title>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>--dry-run</option></term>
+
+        <listitem><para>Do a dry run of <command>systemd-oomd</command>: when a kill is triggered, print it
+        to the log instead of killing the cgroup.</para></listitem>
+      </varlistentry>
+    </variablelist>
+
+    <xi:include href="standard-options.xml" xpointer="help" />
+    <xi:include href="standard-options.xml" xpointer="version" />
+  </refsect1>
+
   <refsect1>
     <title>See Also</title>
     <para>