Ubuntu 20.04.1 LTS: problem with logrotate and nginx
Lentes, Bernd
bernd.lentes at helmholtz-muenchen.de
Fri Mar 12 09:25:20 UTC 2021
----- On Mar 12, 2021, at 10:18 AM, Colin Law clanlaw at gmail.com wrote:
> On Fri, 12 Mar 2021 at 09:10, Lentes, Bernd
> <bernd.lentes at helmholtz-muenchen.de> wrote:
>>
>> Hi,
>>
>> we currently have problems with logrotate and nginx.
>> After logrotate and the reload nginx is finished with a Segmentation fault and a
>> core-dump.
>> There is currently neither an update for nginx nor for logrotate.
>
> What version of ubuntu are you using?
>
> What is in /etc/logrotate.d/nginx, assuming that it exists?
>
> Colin
20.04.1
/etc/logrotate.d/nginx:
/var/log/nginx/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 0640 www-data adm
sharedscripts
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi \
endscript
postrotate
invoke-rc.d nginx rotate >/dev/null 2>&1
endscript
}
Helmholtz Zentrum München
Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671
More information about the ubuntu-users
mailing list