Cool stuff for Raspberry Pi, Arduino and all electronics hobby projects
Notifications
Clear all

[Solved / Archived] Moving the wittyPi.log file to another directory?

3 Posts
2 Users
1 Likes
116 Views
(@arjenr)
Posts: 29
Eminent Member Customer
Topic starter
 

I would like to move the wittyPi log files to a different directory so I can have log2RAM keep just the log files in zRAM without all the other files in ~/wittypi. This other directory could be /var/log like other log files as far as I am concerned.

I haven't found a setting for this and I already tried symbolic and hard links without success.

 
Posted : 14/11/2024 6:28 pm
(@admin)
Posts: 507
Member Admin
 

You may change the log file location here:

https://github.com/uugear/Witty-Pi-4/blob/main/Software/wittypi/utilities.sh#L394

I didn't try but I think file link should also work. I couldn't imagine why it doesn't.

 
Posted : 15/11/2024 3:02 pm
ArjenR reacted
(@arjenr)
Posts: 29
Eminent Member Customer
Topic starter
 

Thanks for the reply. I am not very familiar with links. My attempts to bring the wittyPi.log under control of log2RAM in zRAM probably added extra complexity at boot time. WittyPi stuff apparently not getting logged anywhere.

In the end I realized that there's not normally much being written to the wittypi log, at least not often and in my case, so there is actually not much point in pursuing this just to keep writing to the SD card low.

 
Posted : 16/11/2024 12:24 am
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.