summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-06-14 23:16:07 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-06-14 23:35:56 +0200
commit34cdc274edd870ffc27d21cf82655a0114948748 (patch)
tree8c5236126eeb9fa5e1ec33865304150d4cde0494
parente7aee75932e8a5bee54eefcc77f4702a3ea79db2 (diff)
systemctl: clearer error message for missing install information
Some users found it difficult to understand what systemctl was telling them. Instead of "install information" talk about "[Install] section", which is more likely to ring a bell. And suggest that it is intentional, so that users do not attempt to "correct" the unit files. https://bugzilla.redhat.com/show_bug.cgi?id=817033
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index ae6113089d..133a27c67e 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -4209,7 +4209,7 @@ static int enable_unit(DBusConnection *bus, char **args) {
}
if (carries_install_info == 0)
- log_warning("Warning: unit files do not carry install information. No operation executed.");
+ log_warning("The unit files have no [Install] section. They are not meant to be enabled using systemctl.");
finish:
if (m)