Differences between revisions 5 and 6
Revision 5 as of 2011-02-03 06:22:06
Size: 1192
Editor: ?PavelZubkou
Comment: add new section "Reading /var/log/boot file"
Revision 6 as of 2011-04-26 20:02:26
Size: 1202
Editor: ?skizzhg
Comment: fixing header
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[it/bootlogd|Italiano]]-~ ~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[it/bootlogd|Italiano]]-~

Translation(s): English - Italiano


Bootlogd records boot messages.

Activate bootlogd

You do this by editing /etc/default/bootlogd, this is not enabled by default:

# Run bootlogd at startup ?
BOOTLOGD_ENABLE=yes

When the system is restarted, userspace messages will be logged to /var/log/boot.

Reading /var/log/boot file

Parts of a boot message sometimes can be wrapped with an ASCII color sequences, e.g. "failed" string after unsuccessful init action. bootlogd writes ^[ characters to its log file instead of actual ASCII escape character. To view colored strings via less as expected, you must replace ^[ characters with actual escape character and tell less to output ASCII color escape sequences in "raw" form:

sed $'s/\^\[/\E/g' /var/log/boot | less -R