/etc/crontab/root
Posted: Fri Jun 07, 2019 1:20 pm
Hoping to find out what this is.
I found the following items in /etc/crontab/root :
I am not much of a Linux guy, but I can Google pretty hard, so if I understand correctly, crontab is like a task scheduler of sorts. I know what the second item is because I saw it referenced here.
So I think I have figured out that I have two tasks scheduled to run, one of which is the ping script that is present on the WiFix builds of ROOTer and the other looks like it is rebooting the router every day at 3am, based on the syntax of the task.
I guess this explains why my router is rebooting every day at 3am. While troubleshooting that problem, I checked the scheduled tasks tab in Luci and there is nothing listed, so it was not apparent what was causing the problem.
So.. two things:
I found the following items in /etc/crontab/root :
Code: Select all
0 3 * * * sleep 70 && touch /etc/banner && reboot -f
0,10,20,30,40,50 * * * * /usr/lib/custom/johns_ping.sh
So I think I have figured out that I have two tasks scheduled to run, one of which is the ping script that is present on the WiFix builds of ROOTer and the other looks like it is rebooting the router every day at 3am, based on the syntax of the task.
I guess this explains why my router is rebooting every day at 3am. While troubleshooting that problem, I checked the scheduled tasks tab in Luci and there is nothing listed, so it was not apparent what was causing the problem.
So.. two things:
- It seems that the chrontab jobs are not appearing in the scheduled tasks section in ROOter Luci. I am not sure of that is a bug or by design.
- I am not sure why there is a job set to reboot the router every day. This seems like something the end user should have control over and should be disabled by default. Further, I didn't find any docs or notes about this feature, and the way it's been implemented seems like a problem since it's not user-facing and you basically need to be a Linux guru to find it.