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/job.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/job.c')
-rw-r--r-- | src/core/job.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/job.c b/src/core/job.c index 1f6b36033d..2a630356bf 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -1084,7 +1084,7 @@ static int job_dispatch_timer(sd_event_source *s, uint64_t monotonic, void *user emergency_action(u->manager, u->job_timeout_action, EMERGENCY_ACTION_IS_WATCHDOG|EMERGENCY_ACTION_WARN, - u->job_timeout_reboot_arg, "job timed out"); + u->job_timeout_reboot_arg, -1, "job timed out"); return 0; } |