主题: logwatch 執行兩次:/var/spool/amavisd/quarantine/ -mtime +15
1).
logwatch:
touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +15 | xargs rm -rf {}: 1 Time(s)
touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +45 | xargs rm -rf {}: 1 Time(s)
2).
crontab -e -u amavis
#
# File generated by iRedMail (2017.03.28.18.08.17):
#
# Version: 0.9.6
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
# Delete virus mails which created 15 days ago.
## Delete virus mails which created 45 days ago.
1 5 * * * touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +45 | xargs rm -rf {}
如何只執行一次 ?
Thanks.