Skip to content

Commit

Permalink
net-misc/chrony: Fix logrotate script
Browse files Browse the repository at this point in the history
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
  • Loading branch information
klausman committed May 29, 2016
1 parent e0756fe commit 420ee41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ src_install() {
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
missingok
sharedscripts
postrotate
/usr/bin/chronyc cyclelogs |grep -v '^200 OK'
/usr/bin/chronyc cyclelogs |grep -v '^200 OK'; return 0
endscript
}

0 comments on commit 420ee41

Please sign in to comment.