Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
b1b438ba
Commit
b1b438ba
authored
Jun 25, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1240 from edx/feanil/hourly_logrotate
Feanil/hourly logrotate
parents
f9983231
b70dfd03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
playbooks/roles/common/tasks/main.yml
+6
-2
playbooks/roles/common/templates/etc/logrotate.d/hourly/edx_logrotate.j2
+4
-0
No files found.
playbooks/roles/common/tasks/main.yml
View file @
b1b438ba
...
...
@@ -62,10 +62,14 @@
-
name
:
Install logrotate configuration for edX
template
:
>
dest=/etc/logrotate.d/edx-services
src=etc/logrotate.d/edx_logrotate.j2
dest=/etc/logrotate.d/
hourly/
edx-services
src=etc/logrotate.d/
hourly/
edx_logrotate.j2
owner=root group=root mode=644
# This can be removed after new release of edX
-
name
:
Remove old edx-services config from /etc/logrotate.d
file
:
path=/etc/logrotate.d/edx-services state=absent
# This is in common to keep all logrotation config
# in the same role
-
name
:
Create hourly subdirectory in logrotate.d
...
...
playbooks/roles/common/templates/etc/logrotate.d/edx_logrotate.j2
→
playbooks/roles/common/templates/etc/logrotate.d/
hourly/
edx_logrotate.j2
View file @
b1b438ba
...
...
@@ -4,9 +4,13 @@
copytruncate
delaycompress
dateext
dateformat -%Y%m%d-%s
missingok
notifempty
daily
rotate 90
size 1M
postrotate
/usr/bin/killall -HUP rsyslogd
endscript
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment