-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.0.1 - acces and error logs, logrotate
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters