chiark / gitweb /
core: output unit status output strings to console, only if we actually are changing...
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Jan 2015 14:07:13 +0000 (15:07 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 28 Jan 2015 14:07:13 +0000 (15:07 +0100)
commit82a2b6bb5e4e5d294f09af778c48974a7857afb6
tree37d7926f1c1e575d8e1344890953ca6a0114a011
parent3ad85e3775d018f32098a2957ce25e1f53440da1
core: output unit status output strings to console, only if we actually are changing unit state

Unit _start() and _stop() implementations can fail with -EAGAIN to delay
execution temporarily. Thus, we should not output status messages before
invoking these calls, but after, and only when we know that the
invocation actually made a change.
13 files changed:
src/core/automount.c
src/core/busname.c
src/core/mount.c
src/core/path.c
src/core/scope.c
src/core/service.c
src/core/slice.c
src/core/snapshot.c
src/core/socket.c
src/core/swap.c
src/core/target.c
src/core/timer.c
src/core/unit.c