We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 709b237 commit 291f465Copy full SHA for 291f465
logrotate/logrotate.d/ee-nginx-proxy-log
@@ -2,11 +2,16 @@
2
{
3
weekly
4
missingok
5
- copytruncate
6
rotate 12
7
compress
8
delaycompress
9
notifempty
10
- create 0640 root root
11
sharedscripts
+ postrotate
+ # Send signal USR1 to nginx-proxy container
12
+ $(sudo /usr/bin/docker inspect -f '{{ .State.Pid }}' services_global-nginx-proxy_1 | xargs sudo /usr/bin/kill -USR1) || echo "ok"
13
+
14
+ # Write log
15
+ echo "$(date +'[%d/%m/%Y %H:%M:%S]') LogRotate.INFO: Rotated logs for nginx-proxy" | sudo tee -a /opt/easyengine/logs/ee.log >/dev/null
16
+ endscript
17
}
0 commit comments