diff options
author | Eivind Uggedal <eivind@uggedal.com> | 2014-05-21 07:44:02 +0000 |
---|---|---|
committer | Eivind Uggedal <eivind@uggedal.com> | 2014-05-21 07:44:02 +0000 |
commit | b8212dd81e9b69cc66811180a1da642eb260c268 (patch) | |
tree | 0bf26f5e7a7b38bb04a04067984b77a00be171c5 /main | |
parent | d83385088b2605e6b4498fa98dad8629d26a16c1 (diff) | |
download | aports-b8212dd81e9b69cc66811180a1da642eb260c268.tar.bz2 aports-b8212dd81e9b69cc66811180a1da642eb260c268.tar.xz |
main/nginx: logrotate fix
Reopen logfiles in logrotate scriptlet only if nginx is running.
Diffstat (limited to 'main')
-rw-r--r-- | main/nginx/APKBUILD | 8 | ||||
-rw-r--r-- | main/nginx/nginx.logrotate | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/main/nginx/APKBUILD b/main/nginx/APKBUILD index 63c5733b2..e02e2afa1 100644 --- a/main/nginx/APKBUILD +++ b/main/nginx/APKBUILD @@ -5,7 +5,7 @@ pkgname=nginx pkgver=1.6.0 _nginxrtmpver=1.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="lightweight HTTP and reverse proxy server" url="http://www.nginx.org" arch="all" @@ -89,16 +89,16 @@ ef72159bfdba7a9b0759bd93979d2d4a nginx-rtmp-module-1.1.0.tar.gz 3aeb488921109e60d02ed64d36790aeb musl-crypt-fix.patch 801a87f7f9d27f8ad85b41a78b4c4461 ipv6.patch 4faf8dff6ff1490edae1688baf1b2abb nginx.initd -8823274a834332d3db4f62bf7dd1fb7d nginx.logrotate" +d3f30c25c84c55252a6babd9e9b0325b nginx.logrotate" sha256sums="943ad757a1c3e8b3df2d5c4ddacc508861922e36fa10ea6f8e3a348fc9abfc1a nginx-1.6.0.tar.gz d57da822b632b52435b159f6358de9474917786f709e197b1e2a81fe7d289d75 nginx-rtmp-module-1.1.0.tar.gz 8c398640bd379c1c6a2fafcd2b3848a72902e47924e8e2490b312c141eec5d70 musl-crypt-fix.patch a24ef5843ae0afa538b00c37eb7da7870f9d7f146f52a9668678f7296cf71d9b ipv6.patch 34e9b1dbb9f5fe4d71f7469ded3eb98fac02f57ecfbfd04ba623099766b4709c nginx.initd -cea0c6f8de55a4c3a3eccc57910de1c3116634082c8e5b660630fb927a29f38d nginx.logrotate" +6b89872994508cc7b4b225bca3301d7942767f37b8b691134141d95995740890 nginx.logrotate" sha512sums="715b3aa6012e2e29f3b4e6affff4641de0958faa25c0acedb8091b0f4c8506a8912a7e507bcb1f89fc5fe0a1233ab7770dc6ed742698874f43af72b7d08e48f7 nginx-1.6.0.tar.gz fa5ca550939981f2ca0e7669b5357caec49836807c4789d0b8c23fd3fb6e8694374f1eb46f31dc3c7114a90fe87053fc3905b9a70a0a74082db8d003795d8136 nginx-rtmp-module-1.1.0.tar.gz 21114c775e4bdd1f7b8b9abc143284945e96ed1d8c49904ddf918abad87b16253f918ba47976cd2df32f0fdb8a7dad399d4200e879db2da6cf93a28aab236a75 musl-crypt-fix.patch 68d64a84568ec2df0366925ab282a05ebe21a85044b6c7844a47573cfd8cc8ed119cc772358bc3fff36e2d4fdf583a730592825f5f98632993ca86d1f8438d5f ipv6.patch e153ff131ca5a62f01744c45e97421db0776be518a84a8d09896955a996e5a0133c03cdfa7ac6b03bad75b5cbb839f49dcccbb210843010da42445706f239a12 nginx.initd -01b77cff16f6e8bfd7fa1d4d20f625bbcddd08f0509173452d060c342c93dc315a7b0560f4734323a5d29ea294de0491f2e3f32e5337574e1a28ebc005eceea8 nginx.logrotate" +fda91710185d6b801dd746c8c3678b5719b408de0b715bef7b1985f1ee17db1e8378d440759ea6234b1f70454a35870a2917bd1d6cd309ddc70e1c066fc8d4b8 nginx.logrotate" diff --git a/main/nginx/nginx.logrotate b/main/nginx/nginx.logrotate index 7778b1108..00e5a94eb 100644 --- a/main/nginx/nginx.logrotate +++ b/main/nginx/nginx.logrotate @@ -6,7 +6,7 @@ missingok sharedscripts postrotate - kill -USR1 `cat /var/run/nginx.pid` + test -r /var/run/nginx.pid && kill -USR1 `cat /var/run/nginx.pid` endscript } |