From f58d42c6bef24597dd3c80387e199158a5c33fc0 Mon Sep 17 00:00:00 2001 From: systemz Date: Tue, 22 Sep 2015 16:11:55 +0200 Subject: [PATCH] v1.0.1 - acces and error logs, logrotate --- wheezy64/etc/logrotate.d/aimpanel-nginx | 18 ++++++++++++++++++ .../local/aimpanel/libs/nginx/conf/nginx.conf | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 wheezy64/etc/logrotate.d/aimpanel-nginx diff --git a/wheezy64/etc/logrotate.d/aimpanel-nginx b/wheezy64/etc/logrotate.d/aimpanel-nginx new file mode 100644 index 0000000..a79a9be --- /dev/null +++ b/wheezy64/etc/logrotate.d/aimpanel-nginx @@ -0,0 +1,18 @@ +/usr/local/aimpanel/log/nginx*.log { + daily + missingok + rotate 52 + compress + delaycompress + notifempty + create 0640 aimpanel adm + sharedscripts + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ + run-parts /etc/logrotate.d/httpd-prerotate; \ + fi; \ + endscript + postrotate + [ ! -f /usr/local/aimpanel/run/nginx.pid ] || kill -USR1 `cat /usr/local/aimpanel/run/nginx.pid` + endscript +} diff --git a/wheezy64/usr/local/aimpanel/libs/nginx/conf/nginx.conf b/wheezy64/usr/local/aimpanel/libs/nginx/conf/nginx.conf index 0fa1213..19b3a27 100644 --- a/wheezy64/usr/local/aimpanel/libs/nginx/conf/nginx.conf +++ b/wheezy64/usr/local/aimpanel/libs/nginx/conf/nginx.conf @@ -8,6 +8,8 @@ events } http { + access_log /usr/local/aimpanel/log/nginx.access.log; + error_log /usr/local/aimpanel/log/nginx.error.log; server { listen 3131 default_server;