News for hackers. Stuff that matters.
Re:“Support for System V scripts now deprecated; will be rem... by ilyt on Wednesday June 28, 2023 @07:58PM (#36514467)
I mostly like systemd but journalctl/journald unequivocally sucks arse with passion.

/rant

They made binary format THAT DON'T HAVE ANY FUCKING PROPER INDEXING. It might have actual indexing, who the fuck knows, but it don't have any useful one

They could literally just drop in SQLite there and now your entire's system's logs have power of being queried via SQL which would be amazing and easy to use with countless tools that can be used with SQLite but NO, (probably) Lennart wanted to have some fun writing shitty binary format coz of his chronic NIH.

    strace systemctl status 2>&1 |grep /var/log/journal |wc -l
    71
It opens SEVENTY ONE FILES TO GET LOGS ABOUT ONE APPLICATION

    systemctl status tinc
    
FOR WHICH IT HAS NO LOGS IN THE FIRST PLACE

    journalctl -a -e -n10 -u tinc |cat
    -- No entries --
(it's the same for app with logs btw.)

I can literally grep a bunch of text files faster than it can look thru it's "efficient" binary logs. But hey if you waste RAM to cache every journal file on your machine in RAM instead of, dunno, actually useful stuff, those commands are fast...

It's an abomination and affront to good engineering. Which is shame coz I like many of the other parts.

/endrant

There are no comments on this comment yet.