3 # sample event handling script for mdadm
4 # e.g. mdadm --follow --program=/sbin/syslog-events --scan
7 # Copyright (C) 2004 SEKINE Tatsuo <tsekine@sdri.co.jp>
17 xFail
*) priority
="error" ;;
18 xTest
*) priority
="debug" ;;
19 x
*) priority
="info" ;;
22 msg
="${event} event on ${dev}"
23 if [ x
"${disc}" != x
]; then
24 msg
="${msg}, related to disc ${disc}"
27 exec logger
-t "${tag}" -p "${facility}.${priority}" -- "${msg}"