Swansong

For mental health, I have been working on final tweaks to my monitoring scripts.

I moved them to a Raspberry Pi, so I could work on the phone system without disrupting monitoring.

The temperature monitoring script writes to a log every minute and I was concerned about stressing the storage, a micro SD card.

The long term permanence of this log is not important, as it is erased every day after the report is generated.

Problem is that fine systemd clears /dev/shm, when a regular user logs out.

After some poking around, the easiest solution I found was to place the log file in /dev/shm.

Solultion? edit /etc/systemd/logind.conf.

Change:
#RemoveIPC=yes
to
RemoveIPC=no

from: https://superuser.com/questions/1117764/why-are-the-contents-of-dev-shm-is-being-removed-automatically

More to follow…

Leave a Reply

Your email address will not be published. Required fields are marked *