Topic: sa-update.cron hangs
==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Linux/BSD distribution name and version: CentOS 6.3
- Related log if you're reporting an issue:
====
Greetings community
Got my self an odd issue with sa-update.cron !
If I run manually
#> sa-update -D
everything works smooth !
The problem starts in /etc/cron.d/sa-update
10 4 * * * root /usr/share/spamassassin/sa-update.cron 2>&1 | tee -a /var/log/sa-update.log
... executing this sa-update with:
sh -x /usr/share/spamassassin/sa-update.cron
the script code line ..... "sleep $(expr $RANDOM % 7200)" hangs here !
Found this https://bugzilla.redhat.com/show_bug.cgi?id=561568
IF you comment this line to remove the delay ... the sa-update.cron output shows me:
(...)
+ /sbin/service spamassassin condrestart
+ '[' -f /etc/init.d/amavisd ']'
+ /sbin/service amavisd condrestart
The amavisd daemon is not running
+ '[' -f /var/run/mimedefang.pid
then I checked ...
#> ps -ef | grep amavis
amavis 1373 1 0 Nov17 ? 00:00:03 amavisd (master)
amavis 1490 1373 0 Nov17 ? 00:00:17 amavisd (ch18-avail)
amavis 5100 1373 0 09:30 ? 00:00:00 amavisd (ch1-avail)
root 6529 6452 0 17:47 pts/0 00:00:00 grep amavis
It was running already !!
Does anyone experiencing this issue in sa-update.cron !?
All comments and ideas are welcome
Thanks.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.