Package: rsyslog
Version: 3.18.6-4
Severity: important

Sometimes we see /dev/log disappear for a while when "rsyslog reload" is 
invoked, typically by logrotate.
I've narrowed down steps to reproduce this bug:

1. Start with a standard lenny install with default syslog settings
2. Modify /etc/rsyslog.conf and uncomment out the following lines to enable TCP 
logging:
   #$ModLoad imtcp
   #$InputTCPServerRun 514
3. Restart or reload rsyslog so the TCP setting is in effect.
4. Put some logging load on rsyslog. This works nicely:
  while [ 1 ] ; do logger "Test" ; done
5. Call "/etc/init.d/rsyslog reload" in a loop with a short sleep in between.  
Watch
   for /dev/log not appearing very shortly after the reload.


In my testing, I reloaded 1000 times with a 0.1s sleep in between, and 10 of the
reloads resulted in /dev/log going away.  /dev/log came back after exactly one
minute in every one of those 10 times (I was no longer calling reload while
waiting for /dev/log to reappear), but during that one minute nothing can write
log messages because /dev/log is gone. 

Rsyslog appeared to still be listening on port 514, though since this test does
not used TCP logging, I could not verify if logging to port 514 actually worked.

I did not have any issues if TCP logging was disabled or if there was nothing 
being
actively logged.


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

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rsyslog depends on:
ii  libc6                  2.7-18            GNU C Library: Shared libraries
ii  lsb-base               3.2-20            Linux Standard Base 3.2 init scrip
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages rsyslog recommends:
ii  logrotate                     3.7.1-5    Log rotation utility

Versions of packages rsyslog suggests:
ii  rsyslog-doc                   3.18.6-4   documentation for rsyslog
pn  rsyslog-mysql | rsyslog-pgsql <none>     (no description available)

-- 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