Since grep -v may return a non-zero exit status even in the benign case, we
need to just return 0 manually. Actual errors will still be reported normally
since any output will trigger mail sending.
Package-Manager: portage-2.3.0_rc1
keepdir /var/{lib,log}/chrony
insinto /etc/logrotate.d
- newins "${FILESDIR}"/chrony-2.4.logrotate chrony
+ newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony
systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service
systemd_enable_ntpunit 50-chrony chronyd.service
missingok
sharedscripts
postrotate
- /usr/bin/chronyc cyclelogs |grep -v '^200 OK'
+ /usr/bin/chronyc cyclelogs |grep -v '^200 OK'; return 0
endscript
}