CRON jobs in /usr/local/etc/cron.d are not run

Started by zemanek, April 16, 2025, 08:20:50 AM

Previous topic - Next topic
Hello,

since /etc/crontab is purged of custom entries every time I update CRON jobs via OPNsense web UI (System-->Settings-->Cron) I moved the custom line to /usr/local/etc/cron.d/ as suggested in /etc/crontab:

# or /usr/local/etc/cron.d and follow the same format as
# /etc/crontab, see the crontab(5) manual page.

But it never runs. So what is crippled in OPNsense in comparison with pure FreeBSD?

cron jobs via the GUI work fine for me. What is it that fails for you for those jobs ?

@cookiemonster I'm afraid I don't understand the question. When CRON job defined in a file in /usr/local/etc/cron.d/ never runs it is not a failure to you? When it was in /var/cron/tabs/root, it worked.

Create your own actions file, add description: and it will show up in Cron GUI. Done.

https://docs.opnsense.org/development/backend/configd.html


Cheers,
Franco

Damn! Now I feel stupid. I forgot to add user column after moving it to system wide cron.d/.

Sorry.