logging fix again

This commit is contained in:
bunkerity
2020-10-25 11:24:52 +01:00
parent 022a653ebc
commit 34a0da444f
3 changed files with 14 additions and 3 deletions

11
scripts/logrotate.conf Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
logrotate -f /etc/logrotate.conf > /dev/null 2>&1
pkill -HUP rsyslogd
fail2ban-client flushlogs
if [ -f /tmp/nginx.pid ] ; then
/usr/sbin/nginx -s reload
fi