Problem with starting script after reboot

I'm using tp link archer c7 v2
EX: I want to running /etc/init.d/example after 10 minuter after I reboot

I already add line in crontab but it doesn't work
@reboot sleep 600 && /etc/init.d/example start
@reboot sleep 600; /etc/init.d/example start

any one help me please

At /etc/rc.local , before exit 0 :
(sleep 600 && do_sth) &

1 Like

https://openwrt.org/docs/guide-user/base-system/cron#check_that_the_jobs_are_run

Also use debugging:

cmd &>/root/crontab.log

The busybox crond used by OpenWrt does not support @reboot, so best is to use @LGA1150's suggested solution.

1 Like

It work for me
Thanks you so much @jow @LGA1150

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.