| ▲ | physicles 4 hours ago | |||||||||||||||||||||||||
Were you concerned about the overhead of shelling out to journalctl? | ||||||||||||||||||||||||||
| ▲ | Pay08 4 hours ago | parent [-] | |||||||||||||||||||||||||
No, at the very worst I could have done it on a different thread (although I don't expect to have needed to). Since I initially planned on supporting 3 different init systems (systemd, Shepherd, and OpenRC) which are all used on wildly different systems, the shelling approach seemed way too brittle. Paths for example are going to be significantly different for systemd on Ubuntu and NixOS for example, and then there are distros like Alpine that like to put binaries into /usr/lib instead of /usr/bin sometimes for some unknown reason (had that one happen to me with Ninja, which caused problems with some CMake scripts I was using). So ultimately, I decided that the project had too many unknowns. Bit of a shame, since I planned to use it to really get to grips with Haskell. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||