]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/manager.c
pid1: make cylon timeout significantly bigger when not showing any messages
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 29 Feb 2020 15:29:42 +0000 (16:29 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 1 Mar 2020 10:42:35 +0000 (11:42 +0100)
commit1b4154a8919c2a28964a4fe42b8875ba25e6a355
tree774060dfae182a9c259a8539e8c216679309aa2c
parentef15d3e1ab67549a65b41e853e4d3b3b08a350d9
pid1: make cylon timeout significantly bigger when not showing any messages

When we are booting with show-status=on, normally new status updates happen a
few times per second. Thus, it is reasonable to start showing the cylon eye
after 5 s, because that means a significant delay has happened. When we are
running with show-status=off or show-status=auto (and no error had occured),
the user is expecting maybe 15 to 90 seconds with no output (because that's
usually how long the whole boot takes). So we shouldn't bother the user with
information about a few seconds of delay. Let's make the timeout 25s if we are
not showing any messages.

Conversly, when we are outputting status messages, we can show the cylon eye
with a shorter delay, now that we removed the connection to enablement status.
Let's make this 2s, so users get feedback about delays more quickly.
src/core/manager.c