[GH-ISSUE #4] Write logfile on tmpfs #6

Closed
opened 2026-03-04 12:04:21 +03:00 by kerem · 2 comments
Owner

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?

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`?
kerem closed this issue 2026-03-04 12:04:21 +03:00
Author
Owner

@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ł:

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?


Reply to this email directly, view it on GitHub
https://github.com/4IceG/luci-app-lite-watchdog/issues/4, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOIOFSNXRG7TSZTI5IA52UD2NKARFAVCNFSM6AAAAABWGCBK4KVHI2DSMVQWIX3LMV43ASLTON2WKOZSHAZDCNZQG42TINY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

<!-- gh-comment-id:2625548997 --> @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ł: > 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? > > — > Reply to this email directly, view it on GitHub > <https://github.com/4IceG/luci-app-lite-watchdog/issues/4>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AOIOFSNXRG7TSZTI5IA52UD2NKARFAVCNFSM6AAAAABWGCBK4KVHI2DSMVQWIX3LMV43ASLTON2WKOZSHAZDCNZQG42TINY> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Author
Owner

@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...

rm -f /etc/modem/log.txt; touch /tmp/log/modem.txt; ln -s /tmp/log/modem.txt /etc/modem/log.txt

That means the script's output will be stored in ram instead of on the router's flash.

<!-- gh-comment-id:2628975731 --> @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`... ``` rm -f /etc/modem/log.txt; touch /tmp/log/modem.txt; ln -s /tmp/log/modem.txt /etc/modem/log.txt ``` That means the script's output will be stored in ram instead of on the router's flash.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/luci-app-lite-watchdog#6
No description provided.