summaryrefslogtreecommitdiffstats
path: root/src/core/job.c
diff options
context:
space:
mode:
authorKevin Kuehler <keur@xcf.berkeley.edu>2019-11-01 08:54:03 +0100
committerKevin Kuehler <keur@xcf.berkeley.edu>2019-11-05 20:17:38 +0100
commit1f0f9f21c1b19e1e450c3c2696955fd6f442ca2b (patch)
treec27260e7baf7061a571f3a0cc3a6976b0879eea3 /src/core/job.c
parentFix CID 1406578: Resource leaks (RESOURCE_LEAK) (diff)
downloadsystemd-1f0f9f21c1b19e1e450c3c2696955fd6f442ca2b.tar.xz
systemd-1f0f9f21c1b19e1e450c3c2696955fd6f442ca2b.zip
core: Add triggering job mode
When used with systemctl stop, follows TRIGGERED_BY dependencies and adds them to the same transaction. Fixes: #3043
Diffstat (limited to 'src/core/job.c')
-rw-r--r--src/core/job.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/job.c b/src/core/job.c
index 9537366eb9..86185296dd 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -1610,6 +1610,7 @@ static const char* const job_mode_table[_JOB_MODE_MAX] = {
[JOB_FLUSH] = "flush",
[JOB_IGNORE_DEPENDENCIES] = "ignore-dependencies",
[JOB_IGNORE_REQUIREMENTS] = "ignore-requirements",
+ [JOB_TRIGGERING] = "triggering",
};
DEFINE_STRING_TABLE_LOOKUP(job_mode, JobMode);