diff options
author | Mike Yuan <me@yhndnzj.com> | 2022-11-18 15:43:34 +0800 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2022-12-03 20:26:14 +0800 |
commit | bf1bea43f15b04152a3948702ba1695a0835c2bf (patch) | |
tree | 3c919627634b4b63dca861de01699b90308a9032 /src/core/dbus-socket.h | |
parent | bef69ae8780da17a807881d078247259170f868e (diff) | |
download | systemd-bf1bea43f15b04152a3948702ba1695a0835c2bf.tar.gz |
systemctl: warn if trying to disable a unit with no install info
Trying to disable a unit with no install info is mostly useless, so
adding a warning like we do for enable (with the new dbus method
'DisableUnitFilesWithFlagsAndInstallInfo()'). Note that it would
still find and remove symlinks to the unit in /etc, regardless of
whether it has install info or not, just like before. And if there are
actually files to remove, we suppress the warning.
Fixes #17689
Diffstat (limited to 'src/core/dbus-socket.h')
0 files changed, 0 insertions, 0 deletions