diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-03-29 16:19:33 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-04-05 08:13:53 +0200 |
commit | bb9947be2fa308d198b63b30e494ade5d68e5109 (patch) | |
tree | 4ed9fd6fdfe824d5bad256639eff2514957dd7f4 /man | |
parent | c75436067f4b392ecf161e123279720dc5c3b33a (diff) | |
download | systemd-bb9947be2fa308d198b63b30e494ade5d68e5109.tar.gz systemd-bb9947be2fa308d198b63b30e494ade5d68e5109.tar.bz2 systemd-bb9947be2fa308d198b63b30e494ade5d68e5109.zip |
tmpfiles: add a new return code for "operational failure" when processing
Things can fail, and we have no control over it:
- file system issues (immutable bits, file system errors, MAC refusals, etc)
- kernel refusing certain arguments when writing to /proc/sys or /sys
Let's add a new code for the case where we parsed configuration but failed
to execute it because of external errors.
Diffstat (limited to 'man')
-rw-r--r-- | man/systemd-tmpfiles.xml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/man/systemd-tmpfiles.xml b/man/systemd-tmpfiles.xml index a6ae5e4f97..7c64dfaf58 100644 --- a/man/systemd-tmpfiles.xml +++ b/man/systemd-tmpfiles.xml @@ -225,11 +225,15 @@ <refsect1> <title>Exit status</title> - <para>On success, 0 is returned. If the configuration was invalid (invalid syntax, missing - arguments, …), so some lines had to be ignored, but no other errors occurred, + <para>On success, 0 is returned. If the configuration was syntactically invalid (syntax errors, + missing arguments, …), so some lines had to be ignored, but no other errors occurred, <constant>65</constant> is returned (<constant>EX_DATAERR</constant> from - <filename>/usr/include/sysexits.h</filename>). Otherwise, <constant>1</constant> is returned - (<constant>EXIT_FAILURE</constant> from <filename>/usr/include/stdlib.h</filename>). + <filename>/usr/include/sysexits.h</filename>). If the configuration was syntactically valid, but + could not be executed (lack of permissions, creation of files in missing directories, invalid + contents when writing to <filename>/sys/</filename> values, …), <constant>73</constant> is + returned (<constant>EX_DATAERR</constant> from <filename>/usr/include/sysexits.h</filename>). + Otherwise, <constant>1</constant> is returned (<constant>EXIT_FAILURE</constant> from + <filename>/usr/include/stdlib.h</filename>). </para> </refsect1> |