bunkerweb/scripts/logrotate.sh
2020-10-26 20:51:54 +01:00

12 lines
179 B
Bash

#!/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