b8b836245b
- Add systemctl-options.patch: handle SYSTEMCTL_OPTIONS internaly (bnc#798620). - Update crypt-loop-file.patch to correctly detect crypto loop files (bnc#799514). - Add journalctl-remove-leftover-message.patch: remove debug message in systemctl. - Add job-avoid-recursion-when-cancelling.patch: prevent potential recursion when cancelling a service. - Add sysctl-parse-all-keys.patch: ensure sysctl file is fully parsed. - Add journal-fix-cutoff-max-date.patch: fix computation of cutoff max date for journal. - Add reword-rescue-mode-hints.patch: reword rescue prompt. - Add improve-overflow-checks.patch: improve time overflow checks. - Add fix-swap-behaviour-with-symlinks.patch: fix swap behaviour with symlinks. - Add hostnamectl-fix-set-hostname-with-no-argument.patch: ensure hostnamectl requires an argument when called with set-hostname option. - Add agetty-overrides-term.patch: pass correctly terminal type to agetty. - Add check-for-empty-strings-in-strto-conversions.patch: better check for empty strings in strto* conversions. - Add strv-cleanup-error-path-loops.patch: cleanup strv on error path. - Add cryptsetup-handle-plain.patch: correctly handle "plain" option in cryptsetup. - Add fstab-generator-improve-error-message.patch: improve error message in fstab-generator. - Add delta-accept-t-option.patch: accept -t option in OBS-URL: https://build.opensuse.org/request/show/149703 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=331
40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
From 4b9d3dc9748ec3f52a71b06f851f4398462a1c60 Mon Sep 17 00:00:00 2001
|
|
From: Michal Schmidt <mschmidt@redhat.com>
|
|
Date: Thu, 6 Dec 2012 16:20:10 +0100
|
|
Subject: [PATCH] systemctl: verbose message on missing [Install]
|
|
|
|
People still don't understand what the message implies.
|
|
We have to be more verbose (or more intelligent and detect some of the
|
|
cases automatically, but that's not so easy).
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=884438
|
|
---
|
|
src/systemctl/systemctl.c | 11 ++++++++++-
|
|
1 file changed, 10 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
|
|
index 6d01756..3abd7dc 100644
|
|
--- a/src/systemctl/systemctl.c
|
|
+++ b/src/systemctl/systemctl.c
|
|
@@ -3782,7 +3782,16 @@ static int enable_unit(DBusConnection *bus, char **args) {
|
|
}
|
|
|
|
if (carries_install_info == 0)
|
|
- log_warning("The unit files have no [Install] section. They are not meant to be enabled using systemctl.");
|
|
+ log_warning(
|
|
+"The unit files have no [Install] section. They are not meant to be enabled\n"
|
|
+"using systemctl.\n"
|
|
+"Possible reasons for having this kind of units are:\n"
|
|
+"1) A unit may be statically enabled by being symlinked from another unit's\n"
|
|
+" .wants/ or .requires/ directory.\n"
|
|
+"2) A unit's purpose may be to act as a helper for some other unit which has\n"
|
|
+" a requirement dependency on it.\n"
|
|
+"3) A unit may be started when needed via activation (socket, path, timer,\n"
|
|
+" D-Bus, udev, scripted systemctl call, ...).\n");
|
|
|
|
finish:
|
|
if (m)
|
|
--
|
|
1.7.10.4
|
|
|