Artix Linux Forum

Init systems => S6 => Topic started by: jym on 14 June 2022, 00:08:45

Title: Message alignment during shutdown
Post by: jym on 14 June 2022, 00:08:45
Is there a way to align the message text while the system rebooted/poweroff?
Code: [Select]
*** WARNING ***
                The system going down NOW!

                        s6-linux-init-shutdownd: info: sending all processes the TERM signal...
s6-linux-init-shutdownd: info: sending all processes the KILL signal...

I greped for the text in s6-scripts (/etc & /run), but I didn't find it.
Apparently, these messages are in the s6 source code.

P.S.
I think it should look something like this:
Quote
The system going down now.
s6-linux-init-shutdownd: info: sending all processes the TERM signal...

Code: [Select]
printf "\n%s$VAR)\n"
printf "The system going down NOW\n\n"

P.P.S.
Why the word "*** WARNING ***" and even more KILL signal?
Users usually know that they are shutting down the system.
Title: Re: Message alignment during shutdown
Post by: Dudemanguy on 14 June 2022, 05:26:35
That would be part of s6-linux-init. As far as I know, that's just the hardcoded message. Feel free to send skarnet a patch. :P

P.S. for me, everything is aligned normally during shutdown though.
Title: Re: Message alignment during shutdown
Post by: nero on 14 August 2022, 23:55:11
Also happens to me when I'm in xfce/lightdm, on the other hand the alignment shows up correctly in kde/sddm for whatever reason.