unifi-utilities / unifios-utilities

A collection of enhancements for UnifiOS based devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cronjobs on UDM-Pro 2.4.27 no longer working?

badewanne1234 opened this issue · comments

Using UDM-Pro with 2.4.27 OS installed

I installed the bootscript 2.x successfully and also the cronjob script 25-add-cron-jobs.sh with the modification of renaming /etc/init.d/crond restart to /etc/init.d/cron restart

The cronjob, in my case called arp-nas, is very simple and chmod +x has also been set:
5 * * * * arp -s 10.10.xx.xx 00:xx:xx:x:xx:xx
(I also tried 5 * * * * /usr/sbin/arp -s 10.10.xx.xx 00:xx:xx:x:xx:xx)

The cronjob has successfuly been copied to /etc/cron.d/, however it is not executed at all, I also added logs but the log file is not even been created...
* * * * * arp -s 10.10.xx.xx 00:xx:xx:x:xx:xx >> /var/log/nascron.log 2>&1

Are cronjobs no longer working on UDM-Pro with 2.4.x OS or am I missing something?

Closed, how stupid - forgot to add the user to the cron! all sorted.

5 * * * * root /usr/sbin/arp -s 10.10.xx.xx 00:xx:xx:x:xx:xx