diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-04-06 12:15:33 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-06 16:16:02 +0200 |
commit | cae7c282721ce13fc1405fc834382d3177a9b83d (patch) | |
tree | 38969e71fb9b873d3b28369d42f4079086488211 /man/systemd-analyze.xml | |
parent | README: rawhide -> Rawhide (diff) | |
download | systemd-cae7c282721ce13fc1405fc834382d3177a9b83d.tar.xz systemd-cae7c282721ce13fc1405fc834382d3177a9b83d.zip |
analyze: Fix verify exit status regression
Previously, systemd-analyze verify would return 0 even if warnings
were raised during analysis of the specified units or their
dependencies. With 3cc3dc7, verify was changed to return 1 when
warnings were raised.
This commit changes the default mode to _RECURSIVE_ERRORS_INVALID
so that verify returns zero again by default when warnings are
raised.
Diffstat (limited to 'man/systemd-analyze.xml')
-rw-r--r-- | man/systemd-analyze.xml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml index 7baa1794d7..97290d479b 100644 --- a/man/systemd-analyze.xml +++ b/man/systemd-analyze.xml @@ -819,10 +819,12 @@ $ systemd-analyze verify /tmp/source:alias.service <listitem><para>Control verification of units and their dependencies and whether <command>systemd-analyze verify</command> exits with a non-zero process exit status or not. With <command>yes</command>, return a non-zero process exit status when warnings arise during verification - of either the specified unit or any of its associated dependencies. This is the default. With - <command>no</command>, return a non-zero process exit status when warnings arise during verification - of only the specified unit. With <command>one</command>, return a non-zero process exit status when - warnings arise during verification of either the specified unit or its immediate dependencies. </para></listitem> + of either the specified unit or any of its associated dependencies. With <command>no</command>, + return a non-zero process exit status when warnings arise during verification of only the specified + unit. With <command>one</command>, return a non-zero process exit status when warnings arise during + verification of either the specified unit or its immediate dependencies. If this option is not + specified, zero is returned as the exit status regardless whether warnings arise during verification + or not.</para></listitem> </varlistentry> <varlistentry> |