rsyslog does not reopen /dev/xconsole on reload
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Confirmed
|
High
|
Unassigned | ||
rsyslog (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
Binary package hint: rsyslog
Package: rsyslog 4.2.0-2ubuntu8
Uname : 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:22:14 UTC 2010 i686 unknown GNU/Linux
Distro: Lucid (10.04.1 LTS)
On getting a reload (e.g. from sudo reload rsyslog, or from log rotation) rsyslogd closes all open logfiles, pipes, etc, but does not seem to reopen the fifo /dev/xconsole This means that xconsole then hangs.
Before reload:
# ls -l 6402/fd/
total 0
lrwx------ 1 root root 64 2010-08-03 10:21 0 -> socket:[36483]
l-wx------ 1 root root 64 2010-08-03 10:21 10 -> /var/log/mail.log
l-wx------ 1 root root 64 2010-08-03 10:21 11 -> /var/log/user.log
l-wx------ 1 root root 64 2010-08-03 10:21 12 -> /var/log/mail.info
l-wx------ 1 root root 64 2010-08-03 10:21 13 -> /var/log/mail.warn
l-wx------ 1 root root 64 2010-08-03 10:21 14 -> /var/log/mail.err
l-wx------ 1 root root 64 2010-08-03 10:21 15 -> /var/log/
l-wx------ 1 root root 64 2010-08-03 10:21 16 -> /var/log/
l-wx------ 1 root root 64 2010-08-03 10:21 17 -> /var/log/
l-wx------ 1 root root 64 2010-08-03 10:21 18 -> /var/log/debug
l-wx------ 1 root root 64 2010-08-03 10:21 19 -> /var/log/messages
lrwx------ 1 root root 64 2010-08-03 10:21 20 -> /dev/xconsole
lr-x------ 1 root root 64 2010-08-03 10:21 3 -> /proc/kmsg
l-wx------ 1 root root 64 2010-08-03 10:21 4 -> /var/log/ufw.log
l-wx------ 1 root root 64 2010-08-03 10:21 5 -> /var/log/auth.log
l-wx------ 1 root root 64 2010-08-03 10:21 6 -> /var/log/syslog
l-wx------ 1 root root 64 2010-08-03 10:21 7 -> /var/log/daemon.log
l-wx------ 1 root root 64 2010-08-03 10:21 8 -> /var/log/kern.log
l-wx------ 1 root root 64 2010-08-03 10:21 9 -> /var/log/lpr.log
Immediately after reload:
# ls -l 6402/fd/
total 0
lrwx------ 1 root root 64 2010-08-03 10:21 0 -> socket:[36483]
lr-x------ 1 root root 64 2010-08-03 10:21 3 -> /proc/kmsg
Some minutes after reload:
# ls -l 6402/fd/
total 0
lrwx------ 1 root root 64 2010-08-03 10:21 0 -> socket:[36483]
l-wx------ 1 root root 64 2010-08-03 10:21 1 -> /var/log/syslog
l-wx------ 1 root root 64 2010-08-03 10:21 10 -> /var/log/messages
l-wx------ 1 root root 64 2010-08-03 10:21 2 -> /var/log/mail.log
lr-x------ 1 root root 64 2010-08-03 10:21 3 -> /proc/kmsg
l-wx------ 1 root root 64 2010-08-03 10:21 4 -> /var/log/mail.info
l-wx------ 1 root root 64 2010-08-03 10:21 5 -> /var/log/daemon.log
l-wx------ 1 root root 64 2010-08-03 10:21 6 -> /var/log/debug
l-wx------ 1 root root 64 2010-08-03 10:21 7 -> /var/log/mail.warn
l-wx------ 1 root root 64 2010-08-03 10:21 8 -> /var/log/mail.err
l-wx------ 1 root root 64 2010-08-03 10:21 9 -> /var/log/kern.log
It seems that files are only reopened when needed, but /dev/xconsole is not reopened, possibly because it is a named pipe.
Changed in hundredpapercuts: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in rsyslog (Ubuntu): | |
importance: | Undecided → High |
Hola mi amigo has esta linea de comandos en la terminal y con esto se resuelve saludos
/etc/init.d/rsyslog stop d/rsyslog. dpkg-new stop
/etc/init.
cd /usr/src www.rsyslog. com/files/ download/ rsyslog/ rsyslog- 5.5.6.tar. gz 5.5.6.tar. gz.
wget http://
tar zxvf rsyslog-
cd rsyslog-5.5.6
./configure
make
make install
mv /etc/rsyslog.conf /etc/rsyslog. conf.original rsyslog. conf /etc/rsyslog.conf
cp /usr/src/
reboot
Yo batalle mucho para poder resolverlo pero por fin lo pude lograr. obiamente has todo como superusuario
Mucha suerte y espero te sirva quedo en espera de tus comentarios.