diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-24 02:53:27 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-24 02:53:27 (GMT) |
commit | eb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5 (patch) | |
tree | 14fbe26d73dabe2b333e187af28463687a824382 /abs/core/mdadm/finish | |
parent | 66d9054984063e6c34f034b135bf8153e0e8b431 (diff) | |
download | linhes_pkgbuild-eb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5.zip linhes_pkgbuild-eb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5.tar.gz linhes_pkgbuild-eb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5.tar.bz2 |
mdadm: upgrade
Diffstat (limited to 'abs/core/mdadm/finish')
-rw-r--r-- | abs/core/mdadm/finish | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/core/mdadm/finish b/abs/core/mdadm/finish new file mode 100644 index 0000000..5c94528 --- /dev/null +++ b/abs/core/mdadm/finish @@ -0,0 +1,17 @@ +#!/bin/bash +# +# Stop Monitoring software raid arrays +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /sbin/mdadm` + stat_runit "Stopping mdadm RAID Monitor" + [ ! -z "$PID" ] && kill $PID &>/dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon mdadm + stat_done + fi |