From 9db63a505f4ab298b07ba975b8358bb13a2709fa Mon Sep 17 00:00:00 2001 From: yackob03 Date: Fri, 31 Jan 2014 18:17:11 -0500 Subject: [PATCH] Add logrotate config and installation instructions to the readme. --- README.md | 1 + conf/logrotate/quay-logrotate | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 conf/logrotate/quay-logrotate diff --git a/README.md b/README.md index 593b3c0d8..62c10a727 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ virtualenv --distribute venv source venv/bin/activate pip install -r requirements.txt sudo gdebi --n binary_dependencies/*.deb +sudo cp conf/logrotate/* /etc/logrotate.d/ ``` running: diff --git a/conf/logrotate/quay-logrotate b/conf/logrotate/quay-logrotate new file mode 100644 index 000000000..3e5728111 --- /dev/null +++ b/conf/logrotate/quay-logrotate @@ -0,0 +1,29 @@ +/mnt/logs/nginx.access.log { + daily + rotate 7 + compress + delaycompress + missingok + notifempty + create 644 root root +} + +/mnt/logs/nginx.error.log { + daily + rotate 7 + compress + delaycompress + missingok + notifempty + create 644 root root +} + +/mnt/logs/application.log { + daily + rotate 7 + compress + delaycompress + missingok + notifempty + create 644 root root +} \ No newline at end of file