diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-16 11:41:18 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-27 09:44:40 +0100 |
commit | 7af67e9a8b1f10c6aaeff56910957907ef852cee (patch) | |
tree | 47084960ce2b37d51922d7bb6b9d45b4368f1bc6 /src/core/load-fragment.h | |
parent | 79411bbcce7057754942af30939428d38f4369ac (diff) | |
download | systemd-7af67e9a8b1f10c6aaeff56910957907ef852cee.tar.gz |
core: allow to set exit status when using SuccessAction=/FailureAction=exit in units
This adds SuccessActionExitStatus= and FailureActionExitStatus= that may
be used to configure the exit status to propagate in when
SuccessAction=exit or FailureAction=exit is used.
When not specified let's also propagate the exit status of the main
process we fork off for the unit.
Diffstat (limited to 'src/core/load-fragment.h')
-rw-r--r-- | src/core/load-fragment.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/load-fragment.h b/src/core/load-fragment.h index d236f66a39..71d94a7762 100644 --- a/src/core/load-fragment.h +++ b/src/core/load-fragment.h @@ -104,6 +104,7 @@ CONFIG_PARSER_PROTOTYPE(config_parse_job_running_timeout_sec); CONFIG_PARSER_PROTOTYPE(config_parse_log_extra_fields); CONFIG_PARSER_PROTOTYPE(config_parse_collect_mode); CONFIG_PARSER_PROTOTYPE(config_parse_pid_file); +CONFIG_PARSER_PROTOTYPE(config_parse_exit_status); /* gperf prototypes */ const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, GPERF_LEN_TYPE length); |