C. L. Martinez
2015-Oct-13 13:54 UTC
[CentOS] Exists some problem with cronjobs under CentOS7
On Tue, Oct 13, 2015 at 1:45 PM, Richard <lists-centos at listmail.innovate.net> wrote:> >> Date: Tuesday, October 13, 2015 13:41:56 +0000 >> From: "C. L. Martinez" <carlopmart at gmail.com> >> >> >> On Tue, Oct 13, 2015 at 1:39 PM, Jonathan Billings >> <billings at negate.org> wrote: >>> On Tue, Oct 13, 2015 at 06:24:19AM +0000, C. L. Martinez wrote: >>>> For example: logwatch. Logwatch sends a daily email report about >>>> system's health. I didn't received this email from October 9th >>>> ... and email configuration is ok. >>> >>> So your problem is that cron jobs *DO NOT* run? >> >> Yes. that is the problem ... Sorry If I am not explained very >> well. > > What does /var/log/cron show?Nothing ... It is empty. Are the jobs triggered, but you don't> get the expected output, or not triggered?They are not triggered ...> > If not triggered, you might want to show your crontab entries.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 ...
> Date: Tuesday, October 13, 2015 13:54:28 +0000 > From: "C. L. Martinez" <carlopmart at gmail.com> > > On Tue, Oct 13, 2015 at 1:45 PM, Richard > <lists-centos at listmail.innovate.net> wrote: >> >>> Date: Tuesday, October 13, 2015 13:41:56 +0000 >>> From: "C. L. Martinez" <carlopmart at gmail.com> >>> >>> >>> On Tue, Oct 13, 2015 at 1:39 PM, Jonathan Billings >>> <billings at negate.org> wrote: >>>> On Tue, Oct 13, 2015 at 06:24:19AM +0000, C. L. Martinez wrote: >>>>> For example: logwatch. Logwatch sends a daily email report >>>>> about system's health. I didn't received this email from >>>>> October 9th ... and email configuration is ok. >>>> >>>> So your problem is that cron jobs *DO NOT* run? >>> >>> Yes. that is the problem ... Sorry If I am not explained very >>> well. >> >> What does /var/log/cron show? > > Nothing ... It is empty. > > Are the jobs triggered, but you don't >> get the expected output, or not triggered? > > They are not triggered ... > >> >> If not triggered, you might want to show your crontab entries. > > 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 ...What is returned if you issue the command: ps auxw | grep cron | grep -v grep
C. L. Martinez
2015-Oct-13 14:04 UTC
[CentOS] Exists some problem with cronjobs under CentOS7
On Tue, Oct 13, 2015 at 1:58 PM, Richard <lists-centos at listmail.innovate.net> wrote:> > >> Date: Tuesday, October 13, 2015 13:54:28 +0000 >> From: "C. L. Martinez" <carlopmart at gmail.com> >> >> On Tue, Oct 13, 2015 at 1:45 PM, Richard >> <lists-centos at listmail.innovate.net> wrote: >>> >>>> Date: Tuesday, October 13, 2015 13:41:56 +0000 >>>> From: "C. L. Martinez" <carlopmart at gmail.com> >>>> >>>> >>>> On Tue, Oct 13, 2015 at 1:39 PM, Jonathan Billings >>>> <billings at negate.org> wrote: >>>>> On Tue, Oct 13, 2015 at 06:24:19AM +0000, C. L. Martinez wrote: >>>>>> For example: logwatch. Logwatch sends a daily email report >>>>>> about system's health. I didn't received this email from >>>>>> October 9th ... and email configuration is ok. >>>>> >>>>> So your problem is that cron jobs *DO NOT* run? >>>> >>>> Yes. that is the problem ... Sorry If I am not explained very >>>> well. >>> >>> What does /var/log/cron show? >> >> Nothing ... It is empty. >> >> Are the jobs triggered, but you don't >>> get the expected output, or not triggered? >> >> They are not triggered ... >> >>> >>> If not triggered, you might want to show your crontab entries. >> >> 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 ... > > What is returned if you issue the command: > > ps auxw | grep cron | grep -v grep >Cron service is running: root 607 0.0 0.0 126304 1580 ? Ss 05:33 0:00 /usr/sbin/crond -n And according to systemd, without problems: crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled) Active: active (running) since Tue 2015-10-13 05:33:28 UTC; 8h ago Main PID: 607 (crond) CGroup: /system.slice/crond.service ??607 /usr/sbin/crond -n
> Date: Tuesday, October 13, 2015 13:54:28 +0000 > From: "C. L. Martinez" <carlopmart at gmail.com> > > On Tue, Oct 13, 2015 at 1:45 PM, Richard > <lists-centos at listmail.innovate.net> wrote: >> >>> Date: Tuesday, October 13, 2015 13:41:56 +0000 >>> From: "C. L. Martinez" <carlopmart at gmail.com> >>> >>> >>> On Tue, Oct 13, 2015 at 1:39 PM, Jonathan Billings >>> <billings at negate.org> wrote: >>>> On Tue, Oct 13, 2015 at 06:24:19AM +0000, C. L. Martinez wrote: >>>>> For example: logwatch. Logwatch sends a daily email report >>>>> about system's health. I didn't received this email from >>>>> October 9th ... and email configuration is ok. >>>> >>>> So your problem is that cron jobs *DO NOT* run? >>> >>> Yes. that is the problem ... Sorry If I am not explained very >>> well. >> >> What does /var/log/cron show? > > Nothing ... It is empty. > > Are the jobs triggered, but you don't >> get the expected output, or not triggered? > > They are not triggered ... > >> >> If not triggered, you might want to show your crontab entries. > > 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 ...What is returned when you issue the commands: ps auxw | grep cron | grep -v grep systemctl status crond.service
Scott Robbins
2015-Oct-13 14:11 UTC
[CentOS] Exists some problem with cronjobs under CentOS7
On Tue, Oct 13, 2015 at 02:05:47PM +0000, Richard wrote:> > > >> If not triggered, you might want to show your crontab entries. > > > > 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 ... > > What is returned when you issue the commands: > > ps auxw | grep cron | grep -v grep >Do you have spamassassin running on the machine? I remember at one point, it was tagging the daily log messages as spam--this was awhile ago, I don't remember the details or even if I fixed it or it was fixed by an update. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
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 > ... _______________________________________________ CentOS mailing > list CentOS at centos.org https://lists.centos.org/mailman/listinfo/centosI'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? -- public gpg key id: 1362BA1A
m.roth at 5-cent.us
2015-Oct-13 17:49 UTC
[CentOS] Exists some problem with cronjobs under CentOS7
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
C.L. Martinez
2015-Oct-14 09:36 UTC
[CentOS] Exists some problem with cronjobs under CentOS7
On 10/13/2015 04:44 PM, 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 >> ... _______________________________________________ CentOS mailing >> list CentOS at centos.org https://lists.centos.org/mailman/listinfo/centos > > 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? >Nothing ... There is not cron-test-file under /var/tmp ...