BOOTLOGD(8)
π BOOTLOGD π
okay bestie, gather round, because we're talking about bootlogd from the BOOTLOGD(8) manual β aka the little Linux System Administrator's Manual icon that catches every single thing your machine yells at boot. no cap, it's lowkey a big deal. π«Ά
β¨ NAME β¨
bootlogd β record boot messages π
πΈ SYNOPSIS πΈ
/sbin/bootlogd [-c] [-d] [-e] [-r] [-s] [-v] [ -l logfile ] [ -p pidfile ]
π¦ DESCRIPTION π¦
so here's the vibe: bootlogd runs in the background and copies all strings sent to the /dev/console device into a logfile. like, every last one. π
and if that logfile isn't accessible yet? no worries, it's not going to lose the tea β the messages are kept in memory until the logfile is accessible. patient queen behavior fr fr. π
π OPTIONS π
-dβ do not fork and run in the background. stay right there in the foreground, main character energy. π-eβ print escape characters to the boot log file. this turns off filtering of escape characters and lets tools like GNUless(1)see and use colour control characters (aka show the log in colour π). iconic.-cβ attempt to write to the logfile even if it does not yet exist. without this option,bootlogdwill wait for the logfile to appear before attempting to write to it. and this behavior is on purpose bestie β it preventsbootlogdfrom creating logfiles under mount points. π-rβ if there's an existing logfile called logfile, rename it tologfile~β unlesslogfile~already exists, in which case... nope. β-sβ ensure the data is written to the file after each line by callingfdatasync(3). heads up though: this will slow down afsck(8)process running in parallel. π-vβ show version. slay, short and sweet. β-llogfile β log to this logfile. the default is/var/log/boot. π-ppidfile β put the process-id in this file. the default is no pidfile. π«₯
π NOTES π
ngl, bootlogd saves log data which includes control characters. the log is technically a text file, but it's not very easy for humans to read. π
to address this, the readbootlog(1) command can be used to display the boot log without the control characters. thank u readbootlog, our savior. π§
π BUGS π
okay so this is the part where we get real. bootlogd works by redirecting the console output from the console device. (consequently, bootlogd requires PTY support in the kernel configuration β no PTY, no party.) it copies that output to the real console device and to a log file. π
here's the messy part: there is no standard way of ascertaining the real console device if you have a new-style /dev/console device (major 5, minor 1). so bootlogd parses the kernel command line looking for console=... lines and deduces the real console device from that. π΅οΈ
and if that syntax is ever changed by the kernel, or a console type is used thatbootlogddoes not know about β thenbootlogdwill not work. periodt. πβ¨
π AUTHOR π
Miquel van Smoorenburg π
πΈ SEE ALSO πΈ
dmesg(8), fdatasync(3), readbootlog(1) π¦
and that's the whole page bestie!! this came to you courtesy of sysvinit, dated Jul 21, 2003 β yes, she's a vintage icon and she's still serving. π
β¨π
π¦ where this page comes from
- debian bookworm: bootlogd 3.06-4 Β· GPL-2.0-or-later
- debian trixie: bootlogd 3.14-4 Β· GPL-2.0-or-later
- Copyright (C) 1998-2003 Miquel van Smoorenburg
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms