Skip to content

Commit

Permalink
Fix errors in logrotate runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpbronto committed Sep 26, 2021
1 parent 2a9bbf7 commit 6edbf82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ RUN true \
/etc/nginx/conf.d/default.conf \
&& mkdir -p \
/var/log/carbon \
/var/log/graphite
/var/log/graphite \
&& touch /var/log/messages

# optional packages (e.g. not exist on S390 in alpine 3.13 yet)
RUN apk add --update \
Expand Down
4 changes: 1 addition & 3 deletions conf/etc/logrotate.d/graphite-statsd
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/var/log/*.log /var/log/*/*.log {
/var/log/*.log /var/log/carbon/*.log /var/log/graphite/*.log {
daily
size 50M
missingok
rotate 14
compress
delaycompress
notifempty
copytruncate
}

0 comments on commit 6edbf82

Please sign in to comment.