reassign 534219 logrotate
thanks

Marsh Ray wrote:
> Package: rsyslog
> Version: 3.18.6-4
> Severity: important
> Tags: patch
> 
> 
> The rsyslog package (and some others) install an extension conf
> file at /etc/logrotate.d/rsyslog .
> 
> This file makes a noble effort at triggering rsyslog to start a
> new file after rotation:
>         postrotate
>                 invoke-rc.d rsyslog reload > /dev/null
>         endscript
> 
> However, it seems the environment in which the postrotate script
> executes does not allow invoke-rc.d to be found via the path.
> 
> This can be easily reproduced by configuring logrotate to trigger
> on a small file size with the 'delaycompress' option. Set up a
> loop to generate log messages, and watch ls -lht on the directory.
> Run logrotate manually, or have cron run it every minute to speed
> the repro. Observe that logrotate rotates the files, but syslog
> continues writing to the same filehandle (the file now ending
> in .1).
> 
> One solution is to simply specify an absolute path for invoke-rc.d:
>         postrotate
>                 /usr/sbin/invoke-rc.d rsyslog reload > /dev/null
>         endscript
> 
> Another solution might be to patch logrotate to use a login shell:
> - logrotate.c(102):    if (write(fd, "#!/bin/sh\n\n", 11) != 11 ||
> + logrotate.c(102):    if (write(fd, "#!/bin/sh -\n\n", 11) != 11 ||
> but that could have other effects and is probably outside the scope
> of this bug.
> 
> Other packages (ones I don't have installed) are probably affected,
> I don't know the best way to track them down and bug them.

That sounds like a bug in logrotate which should set the correct context to run
it's post-rotate scripts under. I don't plan to add absolute paths to the
rsyslog.conf file.
So reassigning to logrotate.

Cheers,
Michael


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to