The Grumpy Editor's guide to surviving the systemd debate
The Grumpy Editor's guide to surviving the systemd debate
Posted Nov 20, 2014 2:58 UTC (Thu) by raven667 (subscriber, #5198)In reply to: The Grumpy Editor's guide to surviving the systemd debate by nix
Parent article: The Grumpy Editor's guide to surviving the systemd debate
Maybe I misread but isn't that what journalctl does, skip invalid records and start back up at the next valid record, without touching the original file so you always have a pristine copy with the corruption intact? Logs are different than filesystems in that they are write once, read many, you never want to rewrite history, even if that history is corrupt due to a bug.
In fact if it were me, if you detect corruption on reading a journal log I would want to immediately kill journald and let systemd restart it, on startup the new copy can start a new log fileĀ Treat it like a microkernel server, die and reload quickly on error.
