summaryrefslogtreecommitdiffstats
path: root/modules.d/90mdraid/mdmon-pre-shutdown.sh
blob: a5cd8509769478a23bfbf440f2134c6e79ad90a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

_do_mdmon_takeover() {
    local ret
    mdmon --takeover --all
    ret=$?
    [ $ret -eq 0 ] && info "Taking over mdmon processes."
    return $ret
}

if command -v mdmon > /dev/null; then
    _do_mdmon_takeover "$1"
fi