so I've got some nfexpire commands that crontab was meant to run listed in /etc/crontab. They have been working fine for some time but recently they've stopped running at all. Every other job runs, just not the ones in /etc/crontab.
I have checked that the crontab daemon is running by exectuing systemctl status crond
I have checked /var/log/cron and /var/log/messages as well as running journalctl in search for any errors but haven't found anything.
I have made sure that the commands are executable via the terminal, so the problem lies somewhere in crontab.
The /etc/crontab file:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
30 03 01 * * nfexpire -e "something"
30 03 01 * * nfexpire -e "something"
30 03 01 * * nfexpire -e "something"
30 03 01 * * nfexpire -e "something"
30 03 01 * * nfexpire -e "something"
30 03 01 * * nfexpire -e "something"
Oh and I've made sure that there's a newline at the end.
Maybe there's an issue with permissions?
-rw-r--r--. 1 root root 891 Feb 6 2020 /etc/crontab
However it ran with those settings for a few months without any problems so I don't know if any of this should be changed.
Additional info
System: Centos 7
Kernel: 3.10.0-1160.el7.x86_64