[SOLVED] Crontab does not run crontab scripts
[oracle@111 db_back]$ ps aux | grep cron
oracle 14930 0.0 0.0 103232 860 pts/0 S+ 23:21 0:00 grep cron
[oracle@111 db_back]$ service crond restart
User has insufficient privilege.
[root@111 ~]# service crond restart
Stopping crond: [FAILED]
Starting crond: [ OK ]
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# 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
* * * * * oracle run-parts /scripts/expback
* * * * * oracle run-parts /scripts/rmanback
15 * * * * oracle run-parts /etc/cron.hourly
First, the correct place for this is probably in /etc/cron.d not in /etc/crontab. If you really want to keep it where it is now,
I'd suggest looking in /var/log/cron and making sure that it is executing at all. I'd look at `aureport -a`
and see if anything is logged as an selinux denial around the time you expect this to execute
and then use `ausearch -a nnn` where nnn is the number from the far right hand end of the aureport output line(s).
Trying it in permissive mode by running `setenforce 0` would be a good test of this.
No comments:
Post a Comment