]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/load-fragment.h
core: allow to set exit status when using SuccessAction=/FailureAction=exit in units
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Nov 2018 10:41:18 +0000 (11:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 27 Nov 2018 08:44:40 +0000 (09:44 +0100)
commit7af67e9a8b1f10c6aaeff56910957907ef852cee
tree47084960ce2b37d51922d7bb6b9d45b4368f1bc6
parent79411bbcce7057754942af30939428d38f4369ac
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.
13 files changed:
docs/TRANSIENT-SETTINGS.md
src/core/dbus-unit.c
src/core/emergency-action.c
src/core/emergency-action.h
src/core/job.c
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/core/manager.c
src/core/service.c
src/core/unit.c
src/core/unit.h
src/shared/bus-unit-util.c