summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-05-14 17:48:25 +0800
committerMike Yuan <me@yhndnzj.com>2023-05-15 15:04:38 +0800
commit38f901791f3c4b1cbd04b71323bbef2fdab65f83 (patch)
treefb03f9eb4c298a754f6e11393b2065012fa4f801 /src/systemctl
parent62281c78bb0ef77dafb2cad14c1216c313417a23 (diff)
downloadsystemd-38f901791f3c4b1cbd04b71323bbef2fdab65f83.tar.gz
unit-file: support UpheldBy= in [Install] settings (adding Upholds= deps
from .upholds/) Closes #26896
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl-enable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systemctl/systemctl-enable.c b/src/systemctl/systemctl-enable.c
index 6d3709705e..940f54607f 100644
--- a/src/systemctl/systemctl-enable.c
+++ b/src/systemctl/systemctl-enable.c
@@ -248,9 +248,9 @@ int verb_enable(int argc, char *argv[], void *userdata) {
}
if (carries_install_info == 0 && !ignore_carries_install_info)
- log_notice("The unit files have no installation config (WantedBy=, RequiredBy=, Also=,\n"
- "Alias= settings in the [Install] section, and DefaultInstance= for template\n"
- "units). This means they are not meant to be enabled or disabled using systemctl.\n"
+ log_notice("The unit files have no installation config (WantedBy=, RequiredBy=, UpheldBy=,\n"
+ "Also=, or Alias= settings in the [Install] section, and DefaultInstance= for\n"
+ "template units). This means they are not meant to be enabled or disabled using systemctl.\n"
" \n" /* trick: the space is needed so that the line does not get stripped from output */
"Possible reasons for having this kind of units are:\n"
"%1$s A unit may be statically enabled by being symlinked from another unit's\n"