Package: denyhosts
Version: 2.6-7
Severity: normal

Hi,

please use the invoke-rc.d in the logrotate script instead of calling the init 
script directly.

Currently the runlevel settings are not respected. I'm not running the 
denyhosts in daemon mode and the logrotate script keeps starting it anyway.

According to the invoke-rc.d man page:
All access to the init scripts by Debian packages' maintainer scripts should be 
done through invoke-rc.d.

Thanks,
Martin Kourim

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968) 
(ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages denyhosts depends on:
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  python                  2.6.6-3+squeeze6 interactive high-level object-orie
ii  python-central          0.6.16+nmu1      register and build utility for Pyt

denyhosts recommends no packages.

denyhosts suggests no packages.

-- Configuration Files:
/etc/denyhosts.conf changed:
       ############ THESE SETTINGS ARE REQUIRED ############
SECURE_LOG = /var/log/auth.log
HOSTS_DENY = /var/lib/denyhosts/hosts-blocked
PURGE_DENY = 
BLOCK_SERVICE  = 
DENY_THRESHOLD_INVALID = 2
DENY_THRESHOLD_VALID = 3
DENY_THRESHOLD_ROOT = 1
DENY_THRESHOLD_RESTRICTED = 1
WORK_DIR = /var/lib/denyhosts
SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS=YES
HOSTNAME_LOOKUP=YES
LOCK_FILE = /var/run/denyhosts.pid
       ############ THESE SETTINGS ARE OPTIONAL ############
ADMIN_EMAIL = 
SMTP_HOST = localhost
SMTP_PORT = 25
SMTP_FROM = DenyHosts <nobody@localhost>
SMTP_SUBJECT = DenyHosts Report
AGE_RESET_VALID=5d
AGE_RESET_ROOT=25d
AGE_RESET_RESTRICTED=25d
AGE_RESET_INVALID=10d
RESET_ON_SUCCESS = yes
   ######### THESE SETTINGS ARE SPECIFIC TO DAEMON MODE  ##########
DAEMON_LOG = /var/log/denyhosts
 
DAEMON_SLEEP = 30s
DAEMON_PURGE = 1h
   #########   THESE SETTINGS ARE SPECIFIC TO     ##########
   #########       DAEMON SYNCHRONIZATION         ##########

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


-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to