It will <emphasis>not</emphasis> fail if any of the commands configured to stop the unit
(<varname>ExecStop=</varname>, etc.) fail, because the manager will still forcibly terminate the
unit.</para>
+
+ <para>If a unit that gets stopped can still be triggered by other units, a warning containing
+ the names of the triggering units is shown. <option>--no-warn</option> can be used to suppress
+ the warning.</para>
</listitem>
</varlistentry>
<varlistentry>
</listitem>
<listitem>
<para>when using <command>disable</command> combined with <option>--user</option> on units
- that are enabled in global scope.</para>
+ that are enabled in global scope,</para>
+ </listitem>
+ <listitem>
+ <para>when a <command>stop</command>-ped unit still has active triggering units.</para>
</listitem>
</itemizedlist>
</para>
/* 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);
}