1275970Scy#!/bin/sh 2275970Scy# 3275970Scy# $FreeBSD$ 4275970Scy# 5275970Scy 6275970Scy# If there is a global system configuration file, suck it in. 7275970Scy# 8275970Scyif [ -r /etc/defaults/periodic.conf ] 9275970Scythen 10275970Scy . /etc/defaults/periodic.conf 11275970Scy source_periodic_confs 12275970Scyfi 13275970Scy 14275970Scycase "$daily_status_gstripe_enable" in 15275970Scy [Yy][Ee][Ss]) 16275970Scy echo 17275970Scy echo 'Checking status of gstripe(8) devices:' 18275970Scy 19275970Scy if gstripe status; then 20275970Scy components="$(gstripe status -s | fgrep -v UP)" 21275970Scy if [ "${components}" ]; then 22275970Scy rc=3 23275970Scy else 24275970Scy rc=0 25275970Scy fi 26275970Scy else 27275970Scy rc=2 28275970Scy fi 29275970Scy ;; 30275970Scy 31275970Scy *) rc=0;; 32275970Scyesac 33275970Scy 34275970Scyexit $rc 35275970Scy