[systemd-devel] Q: shutdown messages and the lack of such
Hi! I hadn't used shutdown without "now" for a long time, but to day I did: I was surprised about the messages: In traditional UNIX shutdown would announce the shutdown using wall messages. With systemd (in SLES12 SP5 this time) there was no message sent to the users and even in the journal the first message simply was: systemd-logind[16681]: Creating /run/nologin, blocking further logins... The processes magically stopped and the session was closed. I wonder: Shouldn't here be an infiormational message at least when the shutdown command is entered, and at least a notice message when the actual shutdown time has arrived? If you review syslog laternot at all obvious what had happened. Regards, Ulrich ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] Q: shutdown messages and the lack of such
I wonder: Shouldn't here be an infiormational message at least when the shutdown command is entered, and at least a notice message when the actual shutdown time has arrived? If you review syslog laternot at all obvious what had happened. shutdown [OPTIONS...] [TIME] [WALL...] Note that to specify a wall message you must specify a time argument, too. --no-wall # Do not send wall message before halt, power-off, reboot. so, "shutdown now" # has an implicit --no-wall seems it acts according to specs. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] Q: shutdown messages and the lack of such
On Thu, 08 Oct 2020 14:29:24 + fox wrote: > > I wonder: Shouldn't here be an infiormational message at least when > > the shutdown command is entered, and at least a notice message when > > the actual shutdown time has arrived? > > If you review syslog laternot at all obvious what had happened. > > > shutdown [OPTIONS...] [TIME] [WALL...] > > Note that to specify a wall message you must specify a time argument, > too. > --no-wall # Do not send wall message before halt, power-off, reboot. > > so, "shutdown now" # has an implicit --no-wall > > seems it acts according to specs. I think Ulrich's point was that the docs for previous versions of shutdown were consistent with its behaviour, which was to send a wall message and you could customise the message by supplying a command line argument. It appears that the systemctl implementation has changed the behaviour, and the documentation. Whether there is a spec anywhere (POSIX or whatever) I do not know - but certainly a man page is not a spec. Nor do I know whether this was a deliberate and publically agreed change in behaviour or something else. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] Q: shutdown messages and the lack of such
On Thu, 8 Oct 2020 16:44:28 +0100 Dave Howorth wrote: > On Thu, 08 Oct 2020 14:29:24 + > fox wrote: > > > I wonder: Shouldn't here be an infiormational message at least > > > when the shutdown command is entered, and at least a notice > > > message when the actual shutdown time has arrived? > > > If you review syslog laternot at all obvious what had > > > happened. > > > > > > shutdown [OPTIONS...] [TIME] [WALL...] > > > > Note that to specify a wall message you must specify a time > > argument, too. > > --no-wall # Do not send wall message before halt, power-off, > > reboot. > > > > so, "shutdown now" # has an implicit --no-wall > > > > seems it acts according to specs. > > I think Ulrich's point was that the docs for previous versions of > shutdown were consistent with its behaviour, which was to send a wall > message and you could customise the message by supplying a command > line argument. > > It appears that the systemctl implementation has changed the > behaviour, and the documentation. Whether there is a spec anywhere > (POSIX or whatever) I do not know - but certainly a man page is not a > spec. Nor do I know whether this was a deliberate and publically > agreed change in behaviour or something else. Just to add that a quick bit of searching has found only https://refspecs.linuxbase.org/LSB_3.0.0/LSB-PDA/LSB-PDA/shutdown.html as a possible spec and it says the old way is correct and systemd's is wrong. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] shutdown now --no-wall # messages & the lack thereof
> It appears that the systemctl implementation has changed the behaviour, > and the documentation. Whether there is a spec anywhere (POSIX or > whatever) I do not know - but certainly a man page is not a spec. systemd might still be UNIX compliant here, as https://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html does not seem to include shutdown, meaning it is not covered by the standard. quick search gave me nothing by UNIX, POSIX, IEEE or OpenGroup. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel