Skip to content

Commit

Permalink
Merge pull request #7425 from xcat2/logrotate
Browse files Browse the repository at this point in the history
Do not use copytruncate for xcat log rotation
  • Loading branch information
Obihoernchen authored Feb 28, 2024
2 parents a545bed + ef57011 commit cbee70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xCAT/etc/logrotate.d/xcat
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit cbee70b

Please sign in to comment.