Package: rsyslog
Version: 5.8.11-3
Severity: normal

Dear Maintainer,

Following a recent upgrade from squeeze to wheezy (although this would be
trigged by any package update it seems), we noticed that rsyslog was not
logging to the correct log file after log rotation - it was still logging to
"syslog.1" etc.

I discovered that this was caused by the init script not being able to find the
correct pid to signal. Although the pid file was correct, it was trying to
match the exact executable file, which had been deleted:

chrisb@massmail:~$ sudo ls /proc/427/exe -l
lrwxrwxrwx 1 root root 0 Dec  6 01:33 /proc/427/exe ->  
(deleted)/usr/sbin/rsyslogd
chrisb@massmail:~$ sudo /etc/init.d/rsyslog restart
[ ok ] Stopping enhanced syslogd: rsyslogd already stopped.
[....] Starting enhanced syslogd: rsyslogd Already running. If you want to run 
multiple instances, you need to specify different pid files (use -i option)
[ ok ady started.

It seems this was related to the following change in 5.8.8-1:

  * debian/rsyslog.init
    - Use --exec instead of --name for start-stop-daemon. This is more
      reliable and works better on GNU/Hurd. (Closes: #652575)

This also breaks the postinst script which tries to restart the daemon on
upgrade. This could potentially cause an important upgrade not to be applied to
the running daemon.

-- System Information:
Debian Release: 7.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-042stab081.5 (SMP w/20 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rsyslog depends on:
ii  initscripts  2.88dsf-41+deb7u1
ii  libc6        2.13-38
ii  lsb-base     4.1+Debian8+deb7u1
ii  zlib1g       1:1.2.7.dfsg-13

Versions of packages rsyslog recommends:
ii  logrotate  3.8.1-4

Versions of packages rsyslog suggests:
pn  rsyslog-doc                    <none>
pn  rsyslog-gnutls                 <none>
pn  rsyslog-gssapi                 <none>
pn  rsyslog-mysql | rsyslog-pgsql  <none>
pn  rsyslog-relp                   <none>

-- no debconf information

-- 
Chris Butler <chr...@debian.org>
  GnuPG Key ID: 4096R/49E3ACD3


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