Best Practice for crontab?


#1

I basically want to restart my B1300 every day, but have a larger question about scheduled tasks.

I note that luci now has a section System->Scheduled Tasks. This seems to be an interface to editing crontab. I note in the old Openwrt howto on cron (https://oldwiki.archive.openwrt.org/doc/howto/cron) that cron needs to be enabled once your crontab is set. Does this Scheduled Tasks page in luci mitigate the need to manually start cron from the command line? Or is that part of the startup script (I note that cron is listed as one of the startup scripts in the luci interface)?

Finally, is there any other “best practice” for this sort of restart than

30 4 * * * sleep 70 && touch /etc/banner && reboot


#2

You have to ssh to the router, and execute /etc/init.d/cron start. To take it effect, you also can just reboot the device after configuring this schedule task.