systemd: introduced new timeout types
Makes possible to specify separate timeout for start and stop of the service. [ Improved the manpage. Coding style fix. -- michich ]
This commit is contained in:
committed by
Michal Schmidt
parent
7781e063e8
commit
d568a3350e
+36
-14
@@ -463,27 +463,49 @@
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>TimeoutSec=</varname></term>
|
||||
<term><varname>TimeoutStartSec=</varname></term>
|
||||
<listitem><para>Configures the time to
|
||||
wait for start-up and stop. If a
|
||||
wait for start-up. If a
|
||||
daemon service does not signal
|
||||
start-up completion within the
|
||||
configured time the service will be
|
||||
configured time, the service will be
|
||||
considered failed and be shut down
|
||||
again. If a service is asked to stop
|
||||
but does not terminate in the
|
||||
specified time it will be terminated
|
||||
forcibly via SIGTERM, and after
|
||||
another delay of this time with
|
||||
SIGKILL. (See
|
||||
<varname>KillMode=</varname>
|
||||
in <citerefentry><refentrytitle>systemd.kill</refentrytitle><manvolnum>5</manvolnum></citerefentry>) Takes a unit-less value in seconds, or a
|
||||
again.
|
||||
Takes a unit-less value in seconds, or a
|
||||
time span value such as "5min
|
||||
20s". Pass 0 to disable the timeout
|
||||
logic. Defaults to
|
||||
90s, except when <varname>Type=oneshot</varname> is
|
||||
logic. Defaults to 90s, except when
|
||||
<varname>Type=oneshot</varname> is
|
||||
used in which case the timeout
|
||||
is disabled by default.</para></listitem>
|
||||
is disabled by default.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>TimeoutStopSec=</varname></term>
|
||||
<listitem><para>Configures the time to
|
||||
wait for stop. If a service is asked
|
||||
to stop but does not terminate in the
|
||||
specified time, it will be terminated
|
||||
forcibly via SIGTERM, and after
|
||||
another delay of this time with
|
||||
SIGKILL (See
|
||||
<varname>KillMode=</varname>
|
||||
in <citerefentry><refentrytitle>systemd.kill</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
|
||||
Takes a unit-less value in seconds, or a
|
||||
time span value such as "5min
|
||||
20s". Pass 0 to disable the timeout
|
||||
logic. Defaults to 90s.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>TimeoutSec=</varname></term>
|
||||
<listitem><para>A shorthand for configuring
|
||||
both <varname>TimeoutStartSec=</varname>
|
||||
and <varname>TimeoutStopSec=</varname>
|
||||
to the specified value.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
|
||||
Reference in New Issue
Block a user