diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2013-02-28 00:03:22 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2013-02-28 02:24:02 +0100 |
commit | 03b717a3c4f9348807fc56e7a7d711d72d4ec0cb (patch) | |
tree | e629fbd5f143b966434acdc5a2e917115d5d8ba0 /src/core/manager.h | |
parent | 7ed9f6cd785634dd093e1b1550c3c6183177abf6 (diff) |
core/manager: print status messages about running jobs
Sometimes the boot gets stuck until a timeout hits. The usual timeouts
are on the order of minutes, so users may lose patience.
Print animated status messages telling the names of units with running
jobs to make it easy to see what systemd is waiting for.
The animation looks cooler with a shorter interval, but 1 s is OK and
should not be too hard on slow serial console users.
Diffstat (limited to 'src/core/manager.h')
-rw-r--r-- | src/core/manager.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/manager.h b/src/core/manager.h index 78e4bc6404..c486a16887 100644 --- a/src/core/manager.h +++ b/src/core/manager.h @@ -61,7 +61,8 @@ enum WatchType { WATCH_UDEV, WATCH_DBUS_WATCH, WATCH_DBUS_TIMEOUT, - WATCH_TIME_CHANGE + WATCH_TIME_CHANGE, + WATCH_JOBS_IN_PROGRESS }; struct Watch { @@ -127,6 +128,7 @@ struct Manager { Watch notify_watch; Watch signal_watch; Watch time_change_watch; + Watch jobs_in_progress_watch; int epoll_fd; @@ -225,8 +227,10 @@ struct Manager { unsigned n_installed_jobs; unsigned n_failed_jobs; + /* Jobs in progress watching */ unsigned n_running_jobs; unsigned n_on_console; + unsigned jobs_in_progress_iteration; /* Type=idle pipes */ int idle_pipe[2]; |