Skip to content

Commit

Permalink
v1.0.1 - acces and error logs, logrotate
Browse files Browse the repository at this point in the history
  • Loading branch information
SystemZ committed Sep 22, 2015
1 parent 81e3045 commit f58d42c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions wheezy64/etc/logrotate.d/aimpanel-nginx
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 2 additions & 0 deletions wheezy64/usr/local/aimpanel/libs/nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f58d42c

Please sign in to comment.