mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 19:22:05 +00:00
Do not use copytruncate for xcat log rotation
PR https://github.com/xcat2/xcat-core/pull/6510 tried to fix missing logs for goconserver, but also added copytruncate to all xcat logs in /var/log/xcat*.log. This is not needed because these logs are written by rsyslog and xcat itself, not goconserver. The main rsyslog developer does not recommend to use copytruncate for rsyslog: https://serverfault.com/a/901366 For HA setups with logs on NFS etc. copytruncate can be very slow.
This commit is contained in:
parent
540fbf2dfd
commit
fc80e758cc
@ -1,7 +1,6 @@
|
||||
/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
|
||||
|
Loading…
x
Reference in New Issue
Block a user