diff --git a/debian/stupidchess-nginx.logrotate b/debian/stupidchess-nginx.logrotate index ee1c4ad..22cfc61 100644 --- a/debian/stupidchess-nginx.logrotate +++ b/debian/stupidchess-nginx.logrotate @@ -6,4 +6,7 @@ missingok notifempty dateext + postrotate + [ -f /run/stupidchess-nginx.pid ] && kill -USR1 `cat /run/stupidchess-nginx.pid` + endscript } diff --git a/nginx.conf b/nginx.conf index b070fd5..bdc4125 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,6 @@ pid /run/stupidchess-nginx.pid; events {} +user stupidchess; http { include /etc/nginx/mime.types;