Adding a custom directory to /etc/crontab
Howdy LQ,
I am having issues running scripts within a custom directory I added to /etc/crontab I added same arguments, and gave the same permissions to the custom directory as what the other cron directories have. Is there something that I am missing? Or am I going to have to edit the 'crontab -e', and redo all of this on my 80 different nodes? Code:
cat /etc/crontab Code:
drwxr-xr-x 2 root root 4096 Apr 22 09:54 cron.cleanup Code:
-rwxr-xr-x 1 root root 144 Apr 22 09:47 guardian_coredump.sh |
What operating system are you running? If running a Red Hat derivative; check your SELinux contexts
|
I am running RHEL 6
|
Quote:
What's the output of Code:
getenforce |
Could well be SELinux; what errors/msgs (exactly) are you getting.
Have you checked /var/log/audit/audit.log? |
The answer to my question is:
instead of Code:
05 * * * * root run-parts /etc/cron.cleanup Code:
*/5 * * * * root run-parts /etc/cron.cleanup Now it runs every five minutes, outputs to /var/log/cron and does what I need it to do. Thanks for help guys. |
All times are GMT -5. The time now is 12:57 PM. |