From 89853c290fd822a88c56150dde50aaa1421c0c8c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 19:43:00 +0200 Subject: Adding debian version 4.2-5. Signed-off-by: Daniel Baumann --- debian/mdadm.cron.daily | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 debian/mdadm.cron.daily (limited to 'debian/mdadm.cron.daily') diff --git a/debian/mdadm.cron.daily b/debian/mdadm.cron.daily new file mode 100644 index 0000000..389d74b --- /dev/null +++ b/debian/mdadm.cron.daily @@ -0,0 +1,21 @@ +#!/bin/sh +# +# cron.daily/mdadm -- daily check that MD devices are functional +# +# Copyright © 2008 Paul Slootman +# distributed under the terms of the Artistic Licence 2.0 + +# As recommended by the manpage, run +# mdadm --monitor --scan --oneshot +# every day to ensure that any degraded MD devices don't go unnoticed. +# Email will go to the address specified in /etc/mdadm/mdadm.conf . +# +set -eu + +MDADM=/sbin/mdadm +[ -x $MDADM ] || exit 0 # package may be removed but not purged + +[ -e /etc/default/mdadm ] && . /etc/default/mdadm +[ $AUTOSCAN = false ] && exit 0 + +exec $MDADM --monitor --scan --oneshot -- cgit v1.2.3