diff options
author | Tom Gundersen <teg@jklm.no> | 2011-04-01 15:42:26 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-04-23 21:43:31 +0200 |
commit | a5bdefd41f8ce9ec1be567fcdf8eea20f39fda48 (patch) | |
tree | d461c22521cfeee48e43a1399fb0bb9fe1f027db /adjtime.cron | |
parent | 09c27ea248efebe1e72aa688cb55996dadbbbe29 (diff) |
bootlogd: log messages to console during early boot
This saves all the output during boot to /var/log/boot, which makes
debugging boot problems much simpler.
The logfile contains all the control (color) characters from boot, so
some post processing is in order before the log can be read in a nice
format (e.g. less should be able to show this nicely in raw mode).
Start bootlogd as soon as the required /dev/pts is mounted.
When boot is finished (either at the end of rc.multi or rc.single)
create the required lof file (/var/log/boot) if it does not exist. This
causes bootlogd to flush the log to disk.
Finally, send SIGTERM to bootlogd and clean up after it.
Idea-and-original-patch-by: Søren Poulsen <nikorpoulsen@gmail.com>
Tested-by: David Goldstein <djg1971@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'adjtime.cron')
0 files changed, 0 insertions, 0 deletions