summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2020-12-23 23:51:04 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-12-24 06:36:55 +0100
commit8c62ad19290ff9239f5c399173eacb676169922b (patch)
tree8f5e792656a257021509ae9ca1a9f6fd64e313a3 /src
parentMerge pull request #18069 from flokli/ipv6-privacy-extensions-kernel (diff)
downloadsystemd-8c62ad19290ff9239f5c399173eacb676169922b.tar.xz
systemd-8c62ad19290ff9239f5c399173eacb676169922b.zip
Improve instructions for debugging failing service
In situations where a service fails to start, systemd suggests the user to use "journalctl -xe" to get details about the failure. While running this command does provide some additional details, most of the information is similar to what was already printed when the service fails. often the actual reason for the failure can be found in the logs of the service that fails to start. This patch updates the wording to suggest using "-u" to view the service logs instead. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'src')
-rw-r--r--src/shared/bus-wait-for-jobs.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/shared/bus-wait-for-jobs.c b/src/shared/bus-wait-for-jobs.c
index b2a9e031ce..005294c33a 100644
--- a/src/shared/bus-wait-for-jobs.c
+++ b/src/shared/bus-wait-for-jobs.c
@@ -200,22 +200,24 @@ static void log_job_error_with_service_result(const char* service, const char *r
if (i < ELEMENTSOF(explanations)) {
log_error("Job for %s failed because %s.\n"
- "See \"%s status %s\" and \"%s -xe\" for details.\n",
+ "See \"%s status %s\" and \"%s -xeu %s\" for details.\n",
service,
explanations[i].explanation,
systemctl,
service_shell_quoted ?: "<service>",
- journalctl);
+ journalctl,
+ service_shell_quoted ?: "<service>");
goto finish;
}
}
log_error("Job for %s failed.\n"
- "See \"%s status %s\" and \"%s -xe\" for details.\n",
+ "See \"%s status %s\" and \"%s -xeu %s\" for details.\n",
service,
systemctl,
service_shell_quoted ?: "<service>",
- journalctl);
+ journalctl,
+ service_shell_quoted ?: "<service>");
finish:
/* For some results maybe additional explanation is required */