Page 1 of 1
Quarentine Reports Cron Job missing after upgrade to 3.0.0.7
Posted: 23 Mar 2015 09:13
by Socal_Steve
After Upgrade to 3.0.0.7 all my users not receiving quarantine reports. Report runs fine when launched manually from /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php
Looks like the upgrade broke the existing EFA Crons.
Anyone else having this issue??
Can anyone shoot me a list of their cron.daily.
THX
Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7
Posted: 23 Mar 2015 10:20
by DaN
Don't use it (yet).
cron.daily folder
Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7
Posted: 01 Apr 2015 10:30
by mikemachin
I have noticed this,
I am having to run both the reports php and the maint one to clean up the var directory and truncate my quarantine logs.
Is there a fix for this yet?
Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7
Posted: 01 Apr 2015 16:58
by shawniverson
My /etc/cron.daily/mailwatch cron has this and is executable...
Code: Select all
#!/bin/sh
/usr/local/bin/mailwatch/tools/Cron_jobs/db_clean.php >> /dev/null 2>&1
/usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_maint.php --clean >> /dev/null 2>&1
/usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php >> /dev/null 2>&1
Is this what you have?
Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7
Posted: 02 Apr 2015 09:08
by Socal_Steve
I'm still running manually as i haven't had the time to look deep at this one.
my listings are the same in /etc/cron.daily/mailwatch.
when i grep the cron log for db_clean.php i get nothing
here is my daily cron section from the log.
Code: Select all
Mar 31 03:30:01 dredge CROND[23295]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Mar 31 03:30:21 dredge run-parts(/etc/cron.daily)[23354]: finished logrotate
Mar 31 03:30:21 dredge run-parts(/etc/cron.daily)[22482]: starting mailwatch
Mar 31 03:30:28 dredge run-parts(/etc/cron.daily)[23385]: finished mailwatch
Mar 31 03:30:28 dredge run-parts(/etc/cron.daily)[22482]: starting makewhatis.cron
Mar 31 03:31:50 dredge run-parts(/etc/cron.daily)[612]: finished makewhatis.cron
Mar 31 03:31:50 dredge run-parts(/etc/cron.daily)[22482]: starting mlocate.cron
Mar 31 03:31:55 dredge run-parts(/etc/cron.daily)[636]: finished mlocate.cron
Mar 31 03:31:55 dredge run-parts(/etc/cron.daily)[22482]: starting prelink
Mar 31 03:32:36 dredge run-parts(/etc/cron.daily)[3042]: finished prelink
Mar 31 03:32:36 dredge run-parts(/etc/cron.daily)[22482]: starting readahead.cron
Mar 31 03:32:36 dredge run-parts(/etc/cron.daily)[3054]: finished readahead.cron
Mar 31 03:32:36 dredge run-parts(/etc/cron.daily)[22482]: starting tmpwatch
Mar 31 03:32:37 dredge run-parts(/etc/cron.daily)[3093]: finished tmpwatch
Mar 31 03:32:37 dredge run-parts(/etc/cron.daily)[22482]: starting update_spamassassin
Mar 31 03:40:01 dredge CROND[3560]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Mar 31 03:41:15 dredge run-parts(/etc/cron.daily)[3821]: finished update_spamassassin
Mar 31 03:41:15 dredge anacron[20821]: Job `cron.daily' terminated
it shows it ran but nothing happened...
Mar 31 03:30:21 dredge run-parts(/etc/cron.daily)[22482]: starting mailwatch
Mar 31 03:30:28 dredge run-parts(/etc/cron.daily)[23385]: finished mailwatch
tomorrow i'll try
Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7
Posted: 02 Apr 2015 14:45
by shawniverson
I think this is a shell issue.
Change
to
in /etc/cron.daily/mailwatch
Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7
Posted: 03 Apr 2015 06:35
by Socal_Steve
Looks like that was the problem. once changed from sh to bash all is well.
THANKS SHAWN

Re: Quarentine Reports Cron Job missing after upgrade to 3.0.0.7
Posted: 03 Apr 2015 16:21
by shawniverson