Hi,
can you please share some information of program DietPi-RamLog, e.g. source code, configuration, documentation, etc.
THX
Hi,
can you please share some information of program DietPi-RamLog, e.g. source code, configuration, documentation, etc.
THX
It is a systemd service that runs on early boot (and late shutdown) stage: https://github.com/Fourdee/DietPi/blob/dev/rootfs/etc/systemd/system/dietpi-ramlog.service
On shutdown it writes the /var/log content as zero byte files to disk and recovers them on boot: https://github.com/Fourdee/DietPi/blob/dev/dietpi/func/dietpi-ramlog
The tmpfs (RAMdisk) itself is created via fstab entry: https://github.com/Fourdee/DietPi/blob/dev/dietpi/dietpi-software#L6783-L6795
Based on logging mode choice, via hourly cron job (https://github.com/Fourdee/DietPi/blob/dev/rootfs/etc/cron.hourly/dietpi), logs are optionally written to disk first, and cleared: https://github.com/Fourdee/DietPi/blob/dev/dietpi/func/dietpi-logclear