repo.or.cz
/
dracut.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
dracut-systemd/dracut-initqueue: only start service if really needed
[dracut.git]
/
modules.d
/
90mdraid
/
mdmon-pre-shutdown.sh
blob
51e203c05c2648def6a62b3923f49aaf31996f42
1
#!/bin/sh
2
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
9
}
10
11
if
command -v
mdmon
>/
dev
/
null
;
then
12
_do_mdmon_takeover
$1
13
fi