dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
923a60
From 273a3d35df021128bd72e124d943cbb7b1c7194c Mon Sep 17 00:00:00 2001
923a60
From: Jan Synacek <jsynacek@redhat.com>
923a60
Date: Fri, 22 Jun 2018 09:11:49 +0200
923a60
Subject: [PATCH] man: correct the meaning of TimeoutStopSec=
923a60
923a60
Fixes: #9325
923a60
(cherry picked from commit 9a6da355a06e2b272717f2ac23e41945ce56eb6d)
923a60
Resolves: #1305509
923a60
---
923a60
 man/systemd.service.xml | 12 ++++++------
923a60
 1 file changed, 6 insertions(+), 6 deletions(-)
923a60
923a60
diff --git a/man/systemd.service.xml b/man/systemd.service.xml
923a60
index a274db4803..d147e449a6 100644
923a60
--- a/man/systemd.service.xml
923a60
+++ b/man/systemd.service.xml
923a60
@@ -429,12 +429,12 @@
923a60
 
923a60
       <varlistentry>
923a60
         <term><varname>TimeoutStopSec=</varname></term>
923a60
-        <listitem><para>Configures the time to wait for stop. If a
923a60
-        service is asked to stop, but does not terminate in the
923a60
-        specified time, it will be terminated forcibly via
923a60
-        <constant>SIGTERM</constant>, and after another timeout of
923a60
-        equal duration with <constant>SIGKILL</constant> (see
923a60
-        <varname>KillMode=</varname> in
923a60
+        <listitem><para>This option serves two purposes. First, it configures the time to wait for each
923a60
+        <constant>ExecStop=</constant> command. If any of them times out, subsequent <constant>ExecStop=</constant> commands
923a60
+        are skipped and the service will be terminated by <constant>SIGTERM</constant>. If no <constant>ExecStop=</constant>
923a60
+        commands are specified, the service gets the <constant>SIGTERM</constant> immediately. Second, it configures the time
923a60
+        to wait for the service itself to stop. If it doesn't terminate in the specified time, it will be forcibly terminated
923a60
+        by <constant>SIGKILL</constant> (see <varname>KillMode=</varname> in
923a60
         <citerefentry><refentrytitle>systemd.kill</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
923a60
         Takes a unit-less value in seconds, or a time span value such
923a60
         as "5min 20s". Pass <literal>0</literal> to disable the