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/manager.c | |
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/manager.c')
-rw-r--r-- | src/core/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index e2de1c84b9..bd58db72d3 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -2550,7 +2550,7 @@ static void manager_handle_ctrl_alt_del(Manager *m) { if (ratelimit_below(&m->ctrl_alt_del_ratelimit) || m->cad_burst_action == EMERGENCY_ACTION_NONE) manager_start_target(m, SPECIAL_CTRL_ALT_DEL_TARGET, JOB_REPLACE_IRREVERSIBLY); else - emergency_action(m, m->cad_burst_action, EMERGENCY_ACTION_WARN, NULL, + emergency_action(m, m->cad_burst_action, EMERGENCY_ACTION_WARN, NULL, -1, "Ctrl-Alt-Del was pressed more than 7 times within 2s"); } |