2 ms·
log_warning_msg is a function which is wrapping 'echo'. if you 'echo' it will go to the console. Your distro can/does log everything that goes to the boot con
by dijit 7y ago
log_warning_msg is a function which is wrapping 'echo'.
if you 'echo' it will go to the console.
Your distro can/does log everything that goes to the boot console.
The function 'log_warning_msg' is provided by the sourced bash file: /lib/lsb/init-funtions ; you can find a copy here: http://www.linuxfromscratch.org/lfs/view/7.0/scripts/apds02.html http://www.linuxfromscratch.org/lfs/view/7.0/scripts/apds02....
It's just doing echo.
If you add "echo" it will print. I promise.
And anything printed goes to whatever your distro is using to log tty0 console output. (usually /var/log/dmesg or /var/log/messages)
- theamk 7y agoWhich distro logs tty0 console output from echo ? Debian does not. Fedora does not. Gentoo used to, but it broke. Both /var/log/dmesg and /var/log/messages log printk output from inside the kernel. They do not log echo output from userspace. Are you sure you are an admin?
- dijit 7y ago> Which distro logs tty0 console output from echo ? Debian does not. Fedora does not. Gentoo used to, but it broke. None, anymore, that's a little bit the point. Devuan does, so does Debian 7 and RHEL6. I just tested it on all three in a VM. yes, I'm sure I'm an admin.