This is the second revision of the logrotate script for NGINX. This changes the log files' names from /var/log/nginx/*_log to /var/log/nginx/*.log, resembling the new nginx.eclass defaults (bug 700866).
The postrotate script was updated to use the "$()" construct for the command substitution, instead of the legacy `backtick` one. The "kill" utility now use a more POSIX-complying argument "-s singal_name", replacing the XSI's "-signal_name". Bug: https://bugs.gentoo.org/700866 Signed-off-by: Zurab Kvachadze <zurabid2...@gmail.com> --- .../nginx/files/{nginx.logrotate-r1 => nginx-r2.logrotate} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) copy www-servers/nginx/files/{nginx.logrotate-r1 => nginx-r2.logrotate} (51%) diff --git a/www-servers/nginx/files/nginx.logrotate-r1 b/www-servers/nginx/files/nginx-r2.logrotate similarity index 51% copy from www-servers/nginx/files/nginx.logrotate-r1 copy to www-servers/nginx/files/nginx-r2.logrotate index bc9d87a09a91..55a3b01e13a1 100644 --- a/www-servers/nginx/files/nginx.logrotate-r1 +++ b/www-servers/nginx/files/nginx-r2.logrotate @@ -1,11 +1,11 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2024 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -/var/log/nginx/*_log { +/var/log/nginx/*.log { missingok delaycompress sharedscripts postrotate - test -r /run/nginx.pid && kill -USR1 `cat /run/nginx.pid` + test -r /run/nginx.pid && kill -s USR1 "$(cat /run/nginx.pid)" endscript } -- 2.44.2