summaryrefslogtreecommitdiffstats
path: root/package/nginx/nginx.logrotate
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2014-10-05 12:46:22 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-10-05 14:24:27 +0200
commit390a1449036e72436742d4529ccafb0cf8f64db5 (patch)
treea7fdb20ffb40992b0d021d25dfca0117882c0d33 /package/nginx/nginx.logrotate
parenta8f986c449a3e08aff7fff531d7b26a1907a9d09 (diff)
downloadbuildroot-390a1449036e72436742d4529ccafb0cf8f64db5.tar.gz
buildroot-390a1449036e72436742d4529ccafb0cf8f64db5.zip
package/nginx: new package
nginx module selection is, by default, the same as the one sets by the upstream configure script. Patches improving the cross-compilation support have already been sent upstream for integration [1-5]. All these patches are needed because nginx uses its own handwritten build-system, which is cross-platform, but does not properly support cross-compilation. Fixes bug: #3427 [6] [1] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005722.html [2] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005724.html [3] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005725.html [4] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005723.html [5] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005726.html [6] https://bugs.uclibc.org/show_bug.cgi?id=3427 Signed-off-by: Samuel Martin <s.martin49@gmail.com> Cc: Daniele Salvatore Albano <info@daccii.it> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Cc: Johan Oudinet <johan.oudinet@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/nginx/nginx.logrotate')
-rw-r--r--package/nginx/nginx.logrotate9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/nginx/nginx.logrotate b/package/nginx/nginx.logrotate
new file mode 100644
index 0000000000..e0fa9ec4ce
--- /dev/null
+++ b/package/nginx/nginx.logrotate
@@ -0,0 +1,9 @@
+/var/log/nginx/*log {
+ missingok
+ create 640 http log
+ sharedscripts
+ compress
+ postrotate
+ test ! -r /var/run/nginx.pid || kill -USR1 `cat /var/run/nginx.pid`
+ endscript
+}
OpenPOWER on IntegriCloud