[CentOS] Exists some problem with cronjobs under CentOS7

C.L. Martinez carlopmart at gmail.com
Wed Oct 14 09:21:57 UTC 2015


On 10/13/2015 05:49 PM, m.roth at 5-cent.us wrote:
> zep wrote:
>> On 10/13/2015 09:54 AM, C. L. Martinez wrote:
>>> I haven't entries in conrtab's users file at this moment, but I have
>>> done a test: * * * * * ls -la, and it is not triggered. But like I say
>>> before, installed system cronjobs like logwatch task are not triggered
>>
>> I'd say that crontab doesn't actually prove that the job isn't being
>> triggered, it just proves there's an email config/sending/something
>> problem.
>>
>> if you change that to to something like
>>
>> * * * * * touch /var/tmp/cron-test-file
>>
>> does it create and keep changing the date on the file?
>>
>
> Dumb question: is there anything in /etc/cron.*?
>
>      mark

Yes:

-rw-------  1 root root   0 Jul 27 10:57 /etc/cron.deny
-rw-r--r--. 1 root root 451 Jun  9  2014 /etc/crontab

/etc/cron.d:
total 28
drwxr-xr-x.   2 root root   72 Sep 25 09:10 .
drwxr-xr-x. 115 root root 8192 Oct 14 09:19 ..
-rw-r--r--    1 root root  128 Jul 27 10:57 0hourly
-rw-r--r--    1 root root  108 Mar  6  2015 raid-check
-rw-------    1 root root  235 Mar  6  2015 sysstat
-rw-r--r--    1 root root  187 Jan 27  2014 unbound-anchor

/etc/cron.daily:
total 40
drwxr-xr-x.   2 root root    98 Sep 25 09:11 .
drwxr-xr-x. 115 root root  8192 Oct 14 09:19 ..
-rwxr-xr-x.   1 root root   434 Jun 10  2014 0logwatch
-rwxr-xr-x.   1 root root   332 Mar  9  2015 0yum-daily.cron
-rwx------.   1 root root   180 Jul 31  2013 logrotate
-rwxr-xr-x.   1 root root   618 Mar 17  2014 man-db.cron

/etc/cron.hourly:
total 20
drwxr-xr-x.   2 root root   44 Sep 25 09:10 .
drwxr-xr-x. 115 root root 8192 Oct 14 09:19 ..
-rwxr-xr-x    1 root root  392 Jul 27 10:57 0anacron
-rwxr-xr-x.   1 root root  362 Mar  9  2015 0yum-hourly.cron

/etc/cron.monthly:
total 12
drwxr-xr-x.   2 root root    6 Jun  9  2014 .
drwxr-xr-x. 115 root root 8192 Oct 14 09:19 ..

/etc/cron.weekly:
total 12
drwxr-xr-x.   2 root root    6 Jun  9  2014 .
drwxr-xr-x. 115 root root 8192 Oct 14 09:19 ..




More information about the CentOS mailing list