Am 06.12.2013 11:17, schrieb Chris Butler:
> 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.

You should talk to the dpkg maintainers then (which provide
start-stop-daemon). They suggested to use --exec instead of --name.

I'm a bit tired to switch that back and forth due to insufficiences in
our init systems and kludges like s-s-d.




-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to