diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-07-16 20:08:30 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2015-07-21 15:09:12 +0200 |
commit | d1a34ae9c20f1c02aab17884919eccef572b1d21 (patch) | |
tree | 354b377fa1bb4d347a338d221b42c5637ef71cac /src/basic/label.c | |
parent | 6913b32249eeaabf00184872de189e1a8889ab74 (diff) |
core: fix confusing logging of instantaneous jobs
For instantaneous jobs (e.g. starting of targets, sockets, slices, or
Type=simple services) the log shows the job completion
before starting:
systemd[1]: Created slice -.slice.
systemd[1]: Starting -.slice.
systemd[1]: Created slice System Slice.
systemd[1]: Starting System Slice.
systemd[1]: Listening on Journal Audit Socket.
systemd[1]: Starting Journal Audit Socket.
systemd[1]: Reached target Timers.
systemd[1]: Starting Timers.
...
The reason is that the job completes before the ->start() method returns
and only then does unit_start() print the "Starting ..." message.
The same thing happens when stopping units.
Rather than fixing the order of the messages, let's just not emit the
Starting/Stopping message at all when the job completes instantaneously.
The job completion message is sufficient in this case.
Diffstat (limited to 'src/basic/label.c')
0 files changed, 0 insertions, 0 deletions