mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 19:22:05 +00:00
Merge pull request #7425 from xcat2/logrotate
Do not use copytruncate for xcat log rotation
This commit is contained in:
commit
cbee70bfc9
@ -1,11 +1,11 @@
|
||||
/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
|
||||
test -f /var/run/xcat/cmdlogservice.pid && kill -HUP `cat /var/run/xcat/cmdlogservice.pid 2> /dev/null` 2> /dev/null || true
|
||||
test -x /usr/lib/rsyslog/rsyslog-rotate && /usr/lib/rsyslog/rsyslog-rotate || true
|
||||
endscript
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user