From: Ludwig Nussel Date: Tue, 14 Dec 2021 14:55:55 +0000 (+0100) Subject: logind: enable wall messages by default X-Git-Tag: v251-rc1~412^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdf370626f08ed509a5dde9d5618eed29d625032;p=thirdparty%2Fsystemd.git logind: enable wall messages by default Something calling directly into the dbus interface to request a shutdown may not bother turning wall messages on explicitly. This has the convenient side effect that no separate polkit auth is required to turn on wall messages. Was annoying as having a wall message is the default behavior of the commandline tools. Now it's the other way around ie eg systemctl reboot --no-wall requires auth to explicitly turn off the wall message. --- diff --git a/src/login/logind.c b/src/login/logind.c index 52b1d950346..b24f26485ae 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -54,6 +54,7 @@ static int manager_new(Manager **ret) { *m = (Manager) { .console_active_fd = -1, .reserve_vt_fd = -1, + .enable_wall_messages = true, .idle_action_not_before_usec = now(CLOCK_MONOTONIC), };