summaryrefslogtreecommitdiffstats
path: root/abs/core/mdadm/finish
blob: 5c94528fc05136b922869538df9296b42b0b40dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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