[Systems] [Systems-logs] Cron <root at sunjammer> /usr/sbin/denyhosts -c /etc/denyhosts.conf

Sascha Silbe sascha-ml-reply-to-2011-1 at silbe.org
Sun Jan 23 05:14:33 EST 2011


Excerpts from root's message of Sun Jan 23 11:00:02 +0100 2011:

> DenyHosts could not obtain lock (pid: 31843)
> [Errno 17] File exists: '/var/run/denyhosts.pid'

Finally figured it out and complained to Ubuntu [1]:

=== Snip ===

We run DenyHosts as a cron job and have deactivated the DenyHosts daemon
using update-rc.d and insserv.
Every once in a while, DenyHosts gets started in daemon mode anyway and
causes the cron jobs to fail. Today I finally figured out why:

sunjammer:/etc# cat logrotate.d/denyhosts
/var/log/denyhosts {
        create 0640 root adm
        missingok
        weekly
        rotate 7
        compress
        postrotate
                /etc/init.d/denyhosts restart > /dev/null
        endscript
}
sunjammer:/etc#

Not only does it use /etc/init.d/<foo> directly instead of calling
invoke-rc.d, but it also starts a daemon that has been explicitly
configured not to start.

=== Snip ===

Sascha

[1] https://bugs.launchpad.net/ubuntu/+source/denyhosts/+bug/706516
-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/private/systems/attachments/20110123/edb049ff/attachment.pgp>


More information about the Systems mailing list