Disable Auto-Refresh in Watch System Logs

Post Reply
BallyBasic79
Junior Member
Posts: 80
Joined: 22 Aug 2019, 21:43

Disable Auto-Refresh in Watch System Logs

Post by BallyBasic79 »

When the Watch System Logs page loads, the refresh function is automatically set to five seconds. I rarely find the auto-refresh helpful as I typically am scrolling up through the logs and lose my place when it refreshes.

I've been wanting a feature request for a switch to disable the auto-refresh either on the page or in the config. This could also include customization of the refresh interval.

Hacking my own feature request:
Instead of pausing the refresh every time I used the page, I created the little script below to disable the auto-refresh automatically when the page is loaded. This uses the UI Skinning feature. The script is placed in /etc/csf/csf.footer and will be included in each of the UI pages before the closing </body> tag.

Code: Select all

<script>
// Pause the CSFrefreshtimer onload
// to disable the auto-refresh default
	CSFpausetimer();
</script>
Hopefully this helps someone else who is tired of clicking the pause button whenever they load the Watch System Logs page.
Post Reply