From 6c781bb8b9b5dea1f3cdb75a6cbde2b9e8942e8c Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 6 Jan 2024 18:53:54 +0000 Subject: Make nginx a role --- roles/nginx/files/nginx.logrotate | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/nginx/files/nginx.logrotate (limited to 'roles/nginx/files/nginx.logrotate') diff --git a/roles/nginx/files/nginx.logrotate b/roles/nginx/files/nginx.logrotate new file mode 100644 index 0000000..da8ba47 --- /dev/null +++ b/roles/nginx/files/nginx.logrotate @@ -0,0 +1,12 @@ +/var/log/nginx/*log { + missingok + notifempty + create 640 http root + daily + rotate 14 + sharedscripts + compress + postrotate + test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid` + endscript +} -- cgit v1.2.3-70-g09d2