summaryrefslogtreecommitdiff
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-12-25 15:29:42 +0900
committerGitHub <noreply@github.com>2021-12-25 15:29:42 +0900
commit8585b7ca65e5c5d101a935b41cd081963f790946 (patch)
tree1ca6850a6a1dca427dffe5e40eb0eeda0fbc0ae4 /src/core/unit.h
parent2588920059b48f90fee10f067e3bdf6356e02759 (diff)
parent03e1b6664c0fcabeda78c7538dcec445349f6188 (diff)
downloadsystemd-8585b7ca65e5c5d101a935b41cd081963f790946.tar.gz
Merge pull request #20833 from pdmorrow/onfailure_env
service: pass exiting service state to triggered On{Failure,Success}= dependencies
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index 94f2180951..786c15d623 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -242,6 +242,9 @@ typedef struct Unit {
/* Queue of units that have a BindTo= dependency on some other unit, and should possibly be shut down */
LIST_FIELDS(Unit, stop_when_bound_queue);
+ /* Queue of units which have triggered an OnFailure= or OnSuccess= dependency job. */
+ LIST_FIELDS(Unit, triggered_by);
+
/* PIDs we keep an eye on. Note that a unit might have many
* more, but these are the ones we care enough about to
* process SIGCHLD for */