Skip to content

Commit

Permalink
fix(logrotate) replace CR line terminators by LF (#243)
Browse files Browse the repository at this point in the history
logrotate will thrown error when a <CR> character is encountered.
  • Loading branch information
WALL-E authored Mar 20, 2020
1 parent 6e6bb31 commit a978fc9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions kong.logrotate
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/usr/local/kong/logs/*.log {
rotate 14
daily
missingok
compress
notifempty
sharedscripts
postrotate
if [ -f /usr/local/kong/pids/nginx.pid ]; then
kill -USR1 `cat /usr/local/kong/pids/nginx.pid`
fi
endscript
/usr/local/kong/logs/*.log {
rotate 14
daily
missingok
compress
notifempty
sharedscripts
postrotate
if [ -f /usr/local/kong/pids/nginx.pid ]; then
kill -USR1 `cat /usr/local/kong/pids/nginx.pid`
fi
endscript
}

0 comments on commit a978fc9

Please sign in to comment.