azlux / log2ram

ramlog like for systemd (Put log into a ram folder)
MIT License
2.57k stars 187 forks source link

Added awareness of systemd-journald #200

Closed HyP3r- closed 1 year ago

HyP3r- commented 1 year ago

As I wrote in the commit message, I have further developed log2ram so that it takes journald into account and makes sure to leave a consistent state. I have made some changes to the project. I'm happy to customize the whole thing as you need it.

Basically, before I copy the files back to the hard disk/SD card, I do a log rotate and copy only archived journal records.

Also, this pull request is based on the other one where I cleaned up the project a bit. So if you like this pull request you don't have to accept the other one.

HyP3r- commented 1 year ago

Thanks for the merge. What is still important to me: I have of course tested this on my Debian 11 system, but can't say anything for other systems. So please test well. Thanks!