http://bugzilla.opensuse.org/show_bug.cgi?id=954583 Bug ID: 954583 Summary: nginx have wrong logrotate script Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: x86-64 OS: openSUSE 42.1 Status: NEW Severity: Minor Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: h-k@mail.ru QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36 Build Identifier: nginx have wrong logrotate script, since 42.1 moved to systemd. but /etc/logrotate.d/nginx reffering to /etc/init.d/nginx script, that missing in OS: Nov 10 14:15:03 www3 logrotate[24561]: ALERT exited abnormally with [1] Nov 10 14:15:03 www3 logrotate[24562]: logrotate_script: line 1: /etc/init.d/nginx: No such file or directory Nov 10 14:15:03 www3 logrotate[24562]: error: error running non-shared postrotate script for /var/log/nginx/access.log of '/var/log/nginx/*.log ' Nov 10 14:15:03 www3 logrotate[24562]: compress_ext is /usr/bin/xz Nov 10 14:15:03 www3 logrotate[24562]: compress_ext was changed to .xz Reproducible: Always Steps to Reproduce: 1. install nginx via zypper rpm -qi nginx-1.8.0-2.3.x86_64 Name : nginx Version : 1.8.0 Release : 2.3 Architecture: x86_64 Install Date: Sun Nov 8 14:23:00 2015 Group : Productivity/Networking/Web/Proxy Size : 1835745 License : BSD-2-Clause Signature : RSA/SHA256, Thu Oct 1 10:26:14 2015, Key ID b88b2fd43dbdc284 Source RPM : nginx-1.8.0-2.3.src.rpm Build Date : Thu Oct 1 10:25:34 2015 Build Host : build12 Relocations : (not relocatable) Packager : http://bugs.opensuse.org Vendor : openSUSE URL : http://nginx.org/ Summary : A HTTP server and IMAP/POP3 proxy server Description : nginx [engine x] is a HTTP server and IMAP/POP3 proxy server written by Igor Sysoev. It has been running on many heavily loaded Russian sites for more than two years. Distribution: openSUSE Leap 42.1 2. wait until logrotate script triggered for nginx 3. check output journalctl |grep logrotate Actual Results: Nov 10 14:15:03 www3 logrotate[24561]: ALERT exited abnormally with [1] Nov 10 14:15:03 www3 logrotate[24562]: logrotate_script: line 1: /etc/init.d/nginx: No such file or directory Nov 10 14:15:03 www3 logrotate[24562]: error: error running non-shared postrotate script for /var/log/nginx/access.log of '/var/log/nginx/*.log ' Nov 10 14:15:03 www3 logrotate[24562]: compress_ext is /usr/bin/xz Nov 10 14:15:03 www3 logrotate[24562]: compress_ext was changed to .xz Expected Results: logrotate script should work fine As workaround or bugfix user may set in /etc/logrotate.d/nginx /var/log/nginx/*.log { compress dateext maxage 365 rotate 99 size=+4096k missingok notifempty create 644 root root postrotate [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid` endscript } -- You are receiving this mail because: You are on the CC list for the bug.