Crond shortcuts is broken

Hi everyone!
I tired to configure task sheduling according to the wiki https://openwrt.org/docs/guide-user/base-system/cron
Version of OpenWrt is 22.03.3, r20028-43d71ad93e, my router is Asus gP-500 v2.
When I tried to use shorcut @daily in my task specification, cron daemon just ignored it and my task doesn't sheduled. I noticed it when I read logs next day.
After that I replaced shortcut @daily by it's equivalent '0 0 * * *' and my task sheduled just as planed.
So my guess is that cron shorcuts on 22.03.3 is broken.
P.s. every time there was EOL (empty line) in crontab, so that is not the point.

I found two topics dated by 22 year where people complaines the same issues:

May be we should either fix wiki, or fix crond shortcuts?

They’re not broken but simply not implemented by busybox crond.

3 Likes

It is actually implemented in busybox since 2017, but apparently our default config keeps that disabled.

Edit:
When I have done the busybox version bump to 1.28.2 in 2018, I have apparently kept the new feature disabled.

1 Like

In any case we have situation when instructions in wiki doesn't lead user to result, that he wanted to achieve. In other words information in wiki disinforms users, so it should be edited.
In my case I had to make a trip for 15 km to reboot openvpn service in office because of not working crond shortcuts.
I'm new to OpenWRT forum and wiki. Who can edit wiki? I tried to login using my credentials that I use here, but it seams that it uses another account infrastructure.
What should I do next to make edit of wiki about crond shrotcuts. Any advice/instructions?

1 Like

I added a note to wiki.

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

:!: Shortcuts require compiling busybox with FEATURE_CROND_SPECIAL_TIMES enabled in the busybox compile options.

3 Likes

Thank you, hnyman, for editing!
But, I want to say that for the normal user (like me) it is not clear that FEATURE_CROND_SPECIAL_TIMES is disabled by default in OpenWRT. Can you add that info to this note? It can be like:
"Crond shortcuts is not implemented by default in OpenWRT. Shortcuts require compiling busybox with FEATURE_CROND_SPECIAL_TIMES enabled in the busybox compile options."

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