dracut-systemd/dracut-initqueue: only start service if really needed
[dracut.git] / modules.d / 90mdraid / mdmon-pre-shutdown.sh
blob51e203c05c2648def6a62b3923f49aaf31996f42
1 #!/bin/sh
3 _do_mdmon_takeover() {
4 local ret
5 mdmon --takeover --all
6 ret=$?
7 [ $ret -eq 0 ] && info "Taking over mdmon processes."
8 return $ret
11 if command -v mdmon >/dev/null; then
12 _do_mdmon_takeover $1