mirror of
https://github.com/4IceG/luci-app-lite-watchdog.git
synced 2026-04-26 19:25:52 +03:00
[GH-ISSUE #4] Write logfile on tmpfs #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexmbird on GitHub (Jan 30, 2025).
Original GitHub issue: https://github.com/4IceG/luci-app-lite-watchdog/issues/4
Thanks for this great watchdog app.
At present it writes its log to
/etc/modem/log.txt. I'm worried about that causing wear to my router's flash. Could you add an option to store it under/tmp? Perhaps/tmp/log?@4IceG commented on GitHub (Jan 30, 2025):
H,
Change messages displayed in the second tab to "only connection problems",
this will limit the frequency of recordings, and it is also worth setting
the period for checking the Internet connection sensibly (7 minute and
number of failed checks 2?). I didn't put the file in /tmp because it
disappears on restart, so it has to stay as it is.
czw., 30 sty 2025, 21:03 użytkownik Alex Hewson @.***>
napisał:
@alexmbird commented on GitHub (Feb 1, 2025):
Thanks. I hadn't realised the Type of messages dropdown reduces what's written - it looked like just a filter for the UI.
In my case I only have the watchdog restarting the connection, so there's no automatic reboot to delete a log under
/tmp. I've come up with a simple way to eliminate the disk writes that might be useful to others. Add the following to/etc/rc.local...That means the script's output will be stored in ram instead of on the router's flash.