Public bug reported: Binary package hint: logrotate
As of denyhosts 2.6-8 there is a new /etc/logrotate.d/denyhosts, intended to solve http://bugs.debian.org/cgi- bin/bugreport.cgi?bug=605632. /var/log/denyhosts { create 0640 root adm missingok weekly rotate 7 compress postrotate . /etc/denyhosts.conf /etc/init.d/denyhosts stop > /dev/null /usr/bin/sort -u $HOSTS_DENY > $HOSTS_DENY.tmp /bin/mv -f $HOSTS_DENY.tmp $HOSTS_DENY /etc/init.f/denyhosts start > /dev/null endscript } The problem being assuming that /etc/denyhosts.conf would be of proper shell script syntax, in regards to setting variables, which isn't necessarily the case. Hence resulting in cron outmail mails like these. etc/cron.daily/logrotate: /etc/denyhosts.conf: line 28: SECURE_LOG: command not found /etc/denyhosts.conf: line 36: HOSTS_DENY: command not found /etc/denyhosts.conf: line 60: PURGE_DENY: command not found /etc/denyhosts.conf: line 95: BLOCK_SERVICE: command not found /etc/denyhosts.conf: line 110: DENY_THRESHOLD_INVALID: command not found /etc/denyhosts.conf: line 121: DENY_THRESHOLD_VALID: command not found /etc/denyhosts.conf: line 131: DENY_THRESHOLD_ROOT: command not found /etc/denyhosts.conf: line 142: DENY_THRESHOLD_RESTRICTED: command not found /etc/denyhosts.conf: line 155: WORK_DIR: command not found /etc/denyhosts.conf: line 200: LOCK_FILE: command not found /etc/denyhosts.conf: line 221: ADMIN_EMAIL: command not found /etc/denyhosts.conf: line 232: SMTP_HOST: command not found /etc/denyhosts.conf: line 233: SMTP_PORT: command not found /etc/denyhosts.conf: line 252: syntax error near unexpected token `newline' /etc/denyhosts.conf: line 252: `SMTP_FROM = DenyHosts <nobody@localhost>' /bin/mv: missing destination file operand after `.tmp' Try `/bin/mv --help' for more information. logrotate_script: line 5: /etc/init.f/denyhosts: No such file or directory error: error running non-shared postrotate script for /var/log/denyhosts of '/var/log/denyhosts ' run-parts: /etc/cron.daily/logrotate exited with return code 1 ProblemType: Bug DistroRelease: Ubuntu 11.04 Package: logrotate 3.7.8-6ubuntu1 ProcVersionSignature: Ubuntu 2.6.38-4.31-generic 2.6.38-rc5 Uname: Linux 2.6.38-4-generic x86_64 Architecture: amd64 Date: Sun Feb 20 22:29:17 2011 InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110201.2) ProcEnviron: SHELL=/bin/bash PATH=(custom, user) LC_MESSAGES=sv_SE.utf8 LANG=sv_SE.UTF-8 LANGUAGE=sv_SE:sv:en_GB:en SourcePackage: logrotate ** Affects: denyhosts (Ubuntu) Importance: Undecided Status: Triaged ** Affects: denyhosts (Debian) Importance: Unknown Status: Unknown ** Tags: amd64 apport-bug natty -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/722337 Title: /etc/logrotate.d/denyhosts assumes /etc/denyhosts.conf being proper shell script -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs