]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Fix OOMPolicy= version in manpage of systemd.scope
authorcunshunxia <cunshunxia@tencent.com>
Wed, 24 Jan 2024 03:23:19 +0000 (11:23 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 12 Feb 2024 16:49:42 +0000 (16:49 +0000)
OOMPolicy in scope units is separately supported in
version v253, so I think it cannot be directly used
in the manpage with the version from the service.

fix:#30836

man/systemd.scope.xml

index c00ee3bb2562bb64df62c95fbfff3ca712ab6745..777e11fdab28b6e1b3e07ddbe8089a5ce2564920 100644 (file)
     of scope units are the following:</para>
 
     <variablelist class='unit-directives'>
-      <xi:include href="systemd.service.xml" xpointer="oom-policy" />
+      <varlistentry id='oom-policy'>
+        <term><varname>OOMPolicy=</varname></term>
+        <listitem>
+          <xi:include href="systemd.service.xml" xpointer="xpointer(//varlistentry[@id='oom-policy']/listitem/para[position() &lt; last()])" />
+          <xi:include href="version-info.xml" xpointer="v253"/>
+        </listitem>
+      </varlistentry>
 
       <varlistentry>
         <term><varname>RuntimeMaxSec=</varname></term>