#!/bin/sh if [ -r /etc/defaults/periodic.conf ] then . /etc/defaults/periodic.conf source_periodic_confs fi : "${daily_zrepl_enable=NO}" : "${daily_zrepl_warn=15m}" : "${daily_zrepl_crit=1h}" zrepl="%%PREFIX%%/bin/zrepl" case "$daily_zrepl_enable" in [Yy][Ee][Ss]) if service zrepl enabled; then echo echo "Check zrepl status:" $zrepl monitor alive -w "$daily_zrepl_warn" -c "$daily_zrepl_crit" $zrepl monitor snapshots fi ;; esac # assigned in periodic.conf # shellcheck disable=SC2086,SC2154 exit $rc