No idea, this has been happening since couple of weeks now getting emails about failure in execution of cron.daily files. Earlier I fixed
logrotate from post available on this forum, but now getting failure in
spamdyke file. Tried updating the same but still facing the same error issue.
Getting error message as below/etc/cron.daily/spamdyke:
/usr/bin/find: missing argument to `-exec'
(standard_in) 1: illegal character: ^M
/usr/bin/find: invalid argument `-exec' to `-mmin'
My current spamdyke filecat spamdyke
#!/bin/sh
# Delete empty files (older than one week)
/usr/bin/find /var/qmail/spamdyke/greylist/ -type f -mmin +10080 -size 0 -exec rm -f {} ;
if [ -f /usr/bin/bc ] ; then
# If installed, it can automatically be determined
GRAYLIST_MAX_SECS=`grep 'graylist-max-secs' /etc/spamdyke.conf | cut -d = -f 2`
GRAYLIST_MAX_SECS=`echo "scale=0 ; $GRAYLIST_MAX_SECS / 60" | bc -l`
else
# Note: should work with graylist-max-secs / 60 / etc / spamdyke.conf identical
# older than 30240 minutes (= 3 weeks)
GRAYLIST_MAX_SECS=30240
fi
# Delete outdated posts
/usr/bin/find /var/qmail/spamdyke/greylist/ -type f -mmin +$GRAYLIST_MAX_SECS -exec rm -f {} ;
sh /script/sysinfo
A. Control Panel:
- Kloxo-MR: 7.0.0.c-2017081502
- Web: hiawatha-10.6.0-f.1.mr.el6.x86_64
- PHP: php56s - 5.6.31-1.ius.centos6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.9 (Final) x86_64
- Hostname: pharmaindigital.com
C. Services:
1. MySQL: MariaDB-server-10.0.32-1.el6.x86_64
2. PHP:
- Installed:
- Branch: php70w-cli-7.0.21-1.w6.x86_64
- Multiple:
* php56m - 5.6.31-1.ius.centos6
* php70m - 7.0.21-1.ius.centos6
* php71m - 7.1.7-1.ius.centos6
- Used: php70m-fpm
- Multiple: enable
3. Web Used: apache
- Hiawatha: hiawatha-10.6.0-f.1.mr.el6.x86_64
- Lighttpd: lighttpd-1.4.45-1.el6.x86_64
- Nginx: nginx-1.13.4-1.el6.ngx.x86_64
- Apache: httpd24u-2.4.27-1.ius.centos6.x86_64
- PHP Type: php-fpm_worker
- Secondary PHP: off
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.9-1.mr.el6.x86_64
- DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
- NSD: nsd-4.1.16-1.el6.x86_64
- PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
- Yadifa: yadifa-2.2.5-1.mr.el6.x86_64
6. Mail: qmail-toaster-1.03-1.3.57.mr.el6.x86_64
- pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
- smtp: qmail-toaster-1.03-1.3.57.mr.el6.x86_64
- spam: bogofilter-1.2.4-1.el6.x86_64
7. FTP: pure-ftpd
- pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
8. Stats: webalizer
- webalizer: webalizer-2.23_08-1.mr.el6.x86_64
D. Memory:
total used free shared buffers cached
Mem: 3831 2120 1711 23 254 915
-/+ buffers/cache: 950 2880
Swap: 3967 341 3626
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg-root 54G 11G 41G 22% /
*** Process Time: 00:00:00:29.29721 (dd:hh:mm:ss:xxxxxx) ***
* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
(importance after Kloxo-MR update)