diff --git a/xCAT-server/share/xcat/conf/goconslogrotate b/xCAT-server/share/xcat/conf/goconslogrotate index 2e5fd42ff..f972baa30 100644 --- a/xCAT-server/share/xcat/conf/goconslogrotate +++ b/xCAT-server/share/xcat/conf/goconslogrotate @@ -3,6 +3,8 @@ { missingok sharedscripts + copytruncate + delaycompress postrotate kill -HUP `systemctl show -p MainPID goconserver.service 2> /dev/null |awk -F= '{print $2}'` 2> /dev/null || true endscript diff --git a/xCAT/etc/logrotate.d/xcat b/xCAT/etc/logrotate.d/xcat index f820f55e7..407fb4024 100644 --- a/xCAT/etc/logrotate.d/xcat +++ b/xCAT/etc/logrotate.d/xcat @@ -1,6 +1,8 @@ /var/log/xcat/*.log { missingok sharedscripts + copytruncate + delaycompress postrotate test -f /var/run/rsyslogd.pid && kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true test -f /var/run/syslogd.pid && kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true