- cleanups in logrotate
---
main/nginx-initscripts/APKBUILD | 3 ++-
main/nginx-initscripts/nginx.logrotate | 8 ++------
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/main/nginx-initscripts/APKBUILD b/main/nginx-initscripts/APKBUILD
index 3d263bc..be9ab6f 100644
--- a/main/nginx-initscripts/APKBUILD
+++ b/main/nginx-initscripts/APKBUILD
@@ -1,7 +1,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=nginx-initscripts
-pkgver=1.8.0
+pkgver=1.8.1
pkgrel=0
pkgdesc="initscripts and logrotate config for nginx"
url="http://www.nginx.org"
diff --git a/main/nginx-initscripts/nginx.logrotate b/main/nginx-initscripts/nginx.logrotate
index 00e5a94..75815c9 100644
--- a/main/nginx-initscripts/nginx.logrotate
+++ b/main/nginx-initscripts/nginx.logrotate
@@ -1,12 +1,8 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.logrotate,v 1.1 2010/01/03 20:29:40 djc Exp $
-
-/var/log/nginx/*.log {
+/var/log/nginx/log {
missingok
sharedscripts
postrotate
- test -r /var/run/nginx.pid && kill -USR1 `cat /var/run/nginx.pid`
+ /etc/init.d/nginx --quiet --ifstarted reload
endscript
}
--
2.7.0
---
Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org
Help: alpine-aports+help@lists.alpinelinux.org
---
This patch is not needed, and it contains an error.
2016-01-27 10:39 GMT+02:00 Valery Kartel <valery.kartel@gmail.com>:
> - cleanups in logrotate
> ---
> main/nginx-initscripts/APKBUILD | 3 ++-
> main/nginx-initscripts/nginx.logrotate | 8 ++------
> 2 files changed, 4 insertions(+), 7 deletions(-)
>
> diff --git a/main/nginx-initscripts/APKBUILD
> b/main/nginx-initscripts/APKBUILD
> index 3d263bc..be9ab6f 100644
> --- a/main/nginx-initscripts/APKBUILD
> +++ b/main/nginx-initscripts/APKBUILD
> @@ -1,7 +1,8 @@
> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
> +# Contributor: Valery Kartel <valery.kartel@gmail.com>
>
> pkgname=nginx-initscripts
> -pkgver=1.8.0
> +pkgver=1.8.1
> pkgrel=0
> pkgdesc="initscripts and logrotate config for nginx"
> url="http://www.nginx.org"
> diff --git a/main/nginx-initscripts/nginx.logrotate
> b/main/nginx-initscripts/nginx.logrotate
> index 00e5a94..75815c9 100644
> --- a/main/nginx-initscripts/nginx.logrotate
> +++ b/main/nginx-initscripts/nginx.logrotate
> @@ -1,12 +1,8 @@
> -# Copyright 1999-2010 Gentoo Foundation
> -# Distributed under the terms of the GNU General Public License v2
> -# $Header:
> /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.logrotate,v 1.1
> 2010/01/03 20:29:40 djc Exp $
> -
> -/var/log/nginx/*.log {
> +/var/log/nginx/log {
> missingok
> sharedscripts
> postrotate
> - test -r /var/run/nginx.pid && kill -USR1 `cat
> /var/run/nginx.pid`
> + /etc/init.d/nginx --quiet --ifstarted reload
> endscript
> }
>
> --
> 2.7.0
>
>