MadJoker0815 / roborock_nologs

No reboots at 3am and no logfiles that fill up the disk and checks to keep filesystem healthy
25 stars 1 forks source link

Log files in /var/log, /dev file system #4

Open michaelotto opened 4 years ago

michaelotto commented 4 years ago

Hi MadJoker0815,

thanks for your fixes to the Roborock bots. One of the ideas behind the changes is, if I'm correct, to minimize file (write) access in order not to corrupt the file system.

Two issues here:

-- Michael

MadJoker0815 commented 4 years ago

Hi michaelotto,

Thanks for your interest. You are right about the /var/log. But these are system logs you might want to have if something really goes wrong. /dev/shm files can fill up the tempfs and then cause a reboot. Thats why I linked them to /dev/null. It happened on my Gen1 twice, after linking them all was fine.

Hope this answers your questions.

-- Mad

michaelotto commented 4 years ago

Thanks for your answers. Unfortunately, the system loses the symlinks in /dev/shm from time to time (at least once a day) and starts them as regular files again. I haven't found why or when the system is doing that though.

That's why I don't symlink them any more but just delete them once a day (while watchdog is down).

MadJoker0815 commented 4 years ago

You are right, the files do get recreated even if they are symlinked. I will also just remove them from now on while watchdoge is down. Thanks for the information.