From 132e0b532c9b7e7d3166f9d6100d94d395a91aed Mon Sep 17 00:00:00 2001 From: Kevin Kuehler Date: Fri, 1 Nov 2019 01:47:37 -0700 Subject: [PATCH] man: Document --job-mode=triggering switch --- man/systemctl.xml | 12 ++++++++++-- src/core/transaction.c | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/man/systemctl.xml b/man/systemctl.xml index a519a2aec11..0e3b90b266a 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -1601,8 +1601,9 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err replace-irreversibly, isolate, ignore-dependencies, - ignore-requirements or - flush. Defaults to + ignore-requirements, + flush, or + triggering. Defaults to replace, except when the isolate command is used which implies the isolate job mode. @@ -1647,6 +1648,13 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err dependencies will still be honored. + triggering may only be used with + systemctl stop. In this mode, the specified + unit and any active units that trigger it are stopped. See the + discussion of + Triggers= in systemd.unit5 + for more information about triggering units. + diff --git a/src/core/transaction.c b/src/core/transaction.c index 34647281a45..a0ea0f04897 100644 --- a/src/core/transaction.c +++ b/src/core/transaction.c @@ -1148,6 +1148,7 @@ int transaction_add_triggering_jobs(Transaction *tr, Unit *u) { int r; assert(tr); + assert(u); HASHMAP_FOREACH_KEY(v, trigger, u->dependencies[UNIT_TRIGGERED_BY], i) { /* No need to stop inactive jobs */ -- 2.47.3