Skip to content

Commit

Permalink
Return correct exit status from daily/zrepl
Browse files Browse the repository at this point in the history
From `periodic(8)`:

     1     The script has produced some notable information in its output.
           The ⟨basedir⟩_show_info variable controls the masking of this
           output.
  • Loading branch information
dsh2dsh committed Feb 3, 2025
1 parent 148c67b commit 474ca06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dist/freebsd/etc/periodic/daily/zrepl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ fi
: "${daily_zrepl_crit=1h}"
zrepl="/usr/local/bin/zrepl"

rc=1
case "$daily_zrepl_enable" in
[Yy][Ee][Ss])
if service zrepl enabled; then
Expand All @@ -22,6 +23,4 @@ case "$daily_zrepl_enable" in
;;
esac

# assigned in periodic.conf
# shellcheck disable=SC2086,SC2154
exit $rc
exit "$rc"

0 comments on commit 474ca06

Please sign in to comment.