diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-02-12 21:08:28 +0800 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-22 23:05:41 +0900 |
commit | e774d3c9f11eb1767202ca4af38f2d3a9238c046 (patch) | |
tree | 30d4cc818e97764cf2d5f59580deacf39d4c8a36 /man/systemctl.xml | |
parent | b59052be261523721a86caf4ef820e63f03e26a4 (diff) | |
download | systemd-e774d3c9f11eb1767202ca4af38f2d3a9238c046.tar.gz |
systemctl: warn if units disabled in user scope are still enabled globally
Fixes #18271
Diffstat (limited to 'man/systemctl.xml')
-rw-r--r-- | man/systemctl.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/man/systemctl.xml b/man/systemctl.xml index f32d2f23cf..e0f499c41e 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -842,6 +842,11 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err executed. This output may be suppressed by passing <option>--quiet</option>. </para> + <para>When this command is used with <option>--user</option>, the units being operated on might + still be enabled in global scope, and thus get started automatically even after a successful + disablement in user scope. In this case, a warning about it is shown, which can be suppressed + using <option>--no-warn</option>.</para> + <para>This command honors <option>--system</option>, <option>--user</option>, <option>--runtime</option>, <option>--global</option> and <option>--no-warn</option> in a similar way as <command>enable</command>.</para> </listitem> @@ -2045,7 +2050,11 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err </listitem> <listitem> <para>when using <command>enable</command> or <command>disable</command> on units without - install information (i.e. don't have or have an empty [Install] section).</para> + install information (i.e. don't have or have an empty [Install] section),</para> + </listitem> + <listitem> + <para>when using <command>disable</command> combined with <option>--user</option> on units + that are enabled in global scope.</para> </listitem> </itemizedlist> </para> |