diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-04-14 14:36:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-05-25 16:03:03 +0200 |
commit | 294446dcb98eaa1ced5839da674c2065b1367a3a (patch) | |
tree | 2b74a1cb3ce8a0d8c8f30c4b45d2f72c0d5dc5a1 /man/systemd.unit.xml | |
parent | 47cd17ead4bd773691708f3e81a7d047b5692e51 (diff) | |
download | systemd-294446dcb98eaa1ced5839da674c2065b1367a3a.tar.gz |
core: add new OnSuccess= dependency type
This is similar to OnFailure= but is activated whenever a unit returns
into inactive state successfully.
I was always afraid of adding this, since it effectively allows building
loops and makes our engine Turing complete, but it pretty much already
was it was just hidden.
Given that we have per-unit ratelimits as well as an event loop global
ratelimit I feel safe to add this finally, given it actually is useful.
Fixes: #13386
Diffstat (limited to 'man/systemd.unit.xml')
-rw-r--r-- | man/systemd.unit.xml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 07ea21a6e7..d1d7a9f6e0 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -776,11 +776,16 @@ <varlistentry> <term><varname>OnFailure=</varname></term> - <listitem><para>A space-separated list of one or more units - that are activated when this unit enters the - <literal>failed</literal> state. A service unit using - <varname>Restart=</varname> enters the failed state only after - the start limits are reached.</para></listitem> + <listitem><para>A space-separated list of one or more units that are activated when this unit enters + the <literal>failed</literal> state. A service unit using <varname>Restart=</varname> enters the + failed state only after the start limits are reached.</para></listitem> + </varlistentry> + + <varlistentry> + <term><varname>OnSuccess=</varname></term> + + <listitem><para>A space-separated list of one or more units that are activated when this unit enters + the <literal>inactive</literal> state.</para></listitem> </varlistentry> <varlistentry> |