mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
journal: recommend journalctl -x more often
This commit is contained in:
parent
6f9e5c9619
commit
95ec8647c7
|
@ -1342,9 +1342,9 @@ static int wait_for_jobs(DBusConnection *bus, Set *s) {
|
|||
else if (streq(d.result, "canceled"))
|
||||
log_error("Job for %s canceled.", strna(d.name));
|
||||
else if (streq(d.result, "dependency"))
|
||||
log_error("A dependency job for %s failed. See 'journalctl -n' for details.", strna(d.name));
|
||||
log_error("A dependency job for %s failed. See 'journalctl -xn' for details.", strna(d.name));
|
||||
else if (!streq(d.result, "done") && !streq(d.result, "skipped"))
|
||||
log_error("Job for %s failed. See 'systemctl status %s' and 'journalctl -n' for details.", strna(d.name), strna(d.name));
|
||||
log_error("Job for %s failed. See 'systemctl status %s' and 'journalctl -xn' for details.", strna(d.name), strna(d.name));
|
||||
}
|
||||
|
||||
if (streq_ptr(d.result, "timeout"))
|
||||
|
|
|
@ -16,7 +16,7 @@ Before=shutdown.target
|
|||
Environment=HOME=/root
|
||||
WorkingDirectory=/root
|
||||
ExecStartPre=-/bin/plymouth quit
|
||||
ExecStartPre=-/bin/echo -e 'Welcome to emergency mode! After logging in, type "journalctl -b" to view\\nsystem logs, "systemctl reboot" to reboot, "systemctl default" to try again\\nto boot into default mode.'
|
||||
ExecStartPre=-/bin/echo -e 'Welcome to emergency mode! After logging in, type "journalctl -xb" to view\\nsystem logs, "systemctl reboot" to reboot, "systemctl default" to try again\\nto boot into default mode.'
|
||||
ExecStart=-/sbin/sulogin
|
||||
ExecStopPost=@SYSTEMCTL@ --fail --no-block default
|
||||
Type=idle
|
||||
|
|
|
@ -17,7 +17,7 @@ Before=shutdown.target
|
|||
Environment=HOME=/root
|
||||
WorkingDirectory=/root
|
||||
ExecStartPre=-/bin/plymouth quit
|
||||
ExecStartPre=-/bin/echo -e 'Welcome to rescue mode! Type "systemctl default" or ^D to enter default mode.\\nType "journalctl -b" to view system logs. Type "systemctl reboot" to reboot.'
|
||||
ExecStartPre=-/bin/echo -e 'Welcome to rescue mode! Type "systemctl default" or ^D to enter default mode.\\nType "journalctl -xb" to view system logs. Type "systemctl reboot" to reboot.'
|
||||
m4_ifdef(`TARGET_FEDORA',
|
||||
`EnvironmentFile=/etc/sysconfig/init
|
||||
ExecStart=-/bin/bash -c "exec ${SINGLE}"',
|
||||
|
|
Loading…
Reference in a new issue