]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: Mention Type=oneshot timeout directive
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Tue, 16 Jul 2024 16:15:32 +0000 (18:15 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 19 Jul 2024 07:39:51 +0000 (09:39 +0200)
Make the warning for oneshot services (where RuntimeMaxSec= has no
effect) more actionable by pointing to the directive people can use
instead to effectively limit their runtime.

man/systemd.service.xml

index 58439dfa6ee7ab6977de5a4ca5349666457d3b42..6667ac52402e72e84ca0559d87a4a89e3fe2fb08 100644 (file)
         <listitem><para>Configures a maximum time for the service to run. If this is used and the service has been
         active for longer than the specified time it is terminated and put into a failure state. Note that this setting
         does not have any effect on <varname>Type=oneshot</varname> services, as they terminate immediately after
-        activation completed. Pass <literal>infinity</literal> (the default) to configure no runtime
-        limit.</para>
+        activation completed (use <varname>TimeoutStartSec=</varname> to limit their activation).
+        Pass <literal>infinity</literal> (the default) to configure no runtime limit.</para>
 
         <para>If a service of <varname>Type=notify</varname>/<varname>Type=notify-reload</varname> sends
         <literal>EXTEND_TIMEOUT_USEC=…</literal>, this may cause the runtime to be extended beyond