Skip to content

Commit

Permalink
fix: adds postrotate script to fix nginx log exporters
Browse files Browse the repository at this point in the history
  • Loading branch information
norwoodj committed Oct 6, 2021
1 parent 58edadc commit 60a159b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debian/stupidchess-nginx.logrotate
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@
missingok
notifempty
dateext
postrotate
[ -f /run/stupidchess-nginx.pid ] && kill -USR1 `cat /run/stupidchess-nginx.pid`
endscript
}
1 change: 1 addition & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pid /run/stupidchess-nginx.pid;
events {}
user stupidchess;

http {
include /etc/nginx/mime.types;
Expand Down

0 comments on commit 60a159b

Please sign in to comment.