Searching for information of DietPi-RamLog

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
74cmonty
Posts: 16
Joined: Tue Jan 15, 2019 5:25 pm

Searching for information of DietPi-RamLog

Post by 74cmonty »

Hi,
can you please share some information of program DietPi-RamLog, e.g. source code, configuration, documentation, etc.

THX
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: Searching for information of DietPi-RamLog

Post by MichaIng »

It is a systemd service that runs on early boot (and late shutdown) stage: https://github.com/Fourdee/DietPi/blob/ ... og.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/ ... tpi-ramlog

The tmpfs (RAMdisk) itself is created via fstab entry: https://github.com/Fourdee/DietPi/blob/ ... 6783-L6795

Based on logging mode choice, via hourly cron job (https://github.com/Fourdee/DietPi/blob/ ... rly/dietpi), logs are optionally written to disk first, and cleared: https://github.com/Fourdee/DietPi/blob/ ... i-logclear
Post Reply