]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdcheck: log to stderr from systemd units
authorMartin Wilck <mwilck@suse.com>
Thu, 14 Aug 2025 19:14:21 +0000 (21:14 +0200)
committerMariusz Tkaczyk <mtkaczyk@kernel.org>
Tue, 4 Nov 2025 07:51:28 +0000 (08:51 +0100)
commitb366a4009eb8bdd271f6dafb9375dc7e7947eb83
tree0815ea2991182556018032387f36036ee9bd4d52
parent7abba1a1b74ec932b25a8abbfc76ba55d66505f8
mdcheck: log to stderr from systemd units

If the script is run from systemd, simply writing to stderr will
create more concise output. Otherwise, use logger like before.

Use the same logic for other messages printed by the script during
runtime, except for error messages related to the invocation.

Signed-off-by: Martin Wilck <mwilck@suse.com>
misc/mdcheck