From 017d7fd49085e8f877cfa2510f251b9a6b59f207 Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Tue, 16 Jul 2024 18:15:32 +0200 Subject: [PATCH] man: Mention Type=oneshot timeout directive 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. (cherry picked from commit 8c4aa0f1c6a78b35712fa6a7acf6d755d0c0bd86) (cherry picked from commit 468b0646342986c6cc9bd797b4ba189dc488ee8d) --- man/systemd.service.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 86d71083ff..d7a8521c58 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -727,8 +727,8 @@ 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 Type=oneshot services, as they terminate immediately after - activation completed. Pass infinity (the default) to configure no runtime - limit. + activation completed (use TimeoutStartSec= to limit their activation). + Pass infinity (the default) to configure no runtime limit. If a service of Type=notify/Type=notify-reload sends EXTEND_TIMEOUT_USEC=…, this may cause the runtime to be extended beyond