Piaware.out Log file location change?

I have had a bit of a problem with piaware dying but the Pi itself is still running enough for my midnight cron reboot to work. The problem is that the reboot kills the /temp/piaware.out log file so I can’t see what errors piaware might be giving before it crashes.

As a quick fix I’ve mounted a NAS share and have cron job to copy the log file out just before the reboot but it made me wonder if there is a way to get the piaware.out written to a different location?

Not trivially, but you can make /tmp persist over reboot by setting RAMTMP=no in /etc/default/tmpfs

Thanks for that obj…
I assume that makes it use the SD card then?
I might try it all the same - if it’s only for a short time it shouldn’t kill the card …?

You would have to work very hard to kill the sdcard :slight_smile:

The advice to not putting logfiles on a sdcard to avoid write cycles is one of those “it’s technically true but the numbers don’t add up” things. It’d take decades at the one-write-per-5-minutes rate that piaware generates before it’d matter. And there are other logs going to the sdcard already, anyway.