diff --git a/man/systemctl.xml b/man/systemctl.xml index 7d114897f2f..37324286688 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -427,6 +427,10 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err It will not fail if any of the commands configured to stop the unit (ExecStop=, etc.) fail, because the manager will still forcibly terminate the unit. + + If a unit that gets stopped can still be triggered by other units, a warning containing + the names of the triggering units is shown. can be used to suppress + the warning. @@ -2107,7 +2111,10 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err when using disable combined with on units - that are enabled in global scope. + that are enabled in global scope, + + + when a stop-ped unit still has active triggering units. diff --git a/src/systemctl/systemctl-start-unit.c b/src/systemctl/systemctl-start-unit.c index c6b4433aa01..748b005aa46 100644 --- a/src/systemctl/systemctl-start-unit.c +++ b/src/systemctl/systemctl-start-unit.c @@ -391,7 +391,7 @@ int verb_start(int argc, char *argv[], void *userdata) { /* When stopping units, warn if they can still be triggered by * another active unit (socket, path, timer) */ - if (!arg_quiet) + if (!arg_quiet && !arg_no_warn) STRV_FOREACH(unit, stopped_units) warn_triggering_units(bus, *unit, "Stopping", /* ignore_masked = */ true); }