Skip to content

Commit b70dfd0

Browse files
committed
Add a post-rotate hook to restart syslog.
1 parent 6009204 commit b70dfd0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

playbooks/roles/common/templates/etc/logrotate.d/hourly/edx_logrotate.j2

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
copytruncate
55
delaycompress
66
dateext
7+
dateformat -%Y%m%d-%s
78
missingok
89
notifempty
9-
hourly
10+
daily
1011
rotate 90
1112
size 1M
13+
postrotate
14+
/usr/bin/killall -HUP rsyslogd
15+
endscript
1216
}

0 commit comments

Comments
 (0)