]>
Commit | Line | Data |
---|---|---|
0f7bdf89 JS |
1 | # This file is part of mdadm. |
2 | # | |
3 | # mdadm is free software; you can redistribute it and/or modify it | |
4 | # under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 2 of the License, or | |
6 | # (at your option) any later version. | |
7 | ||
8 | [Unit] | |
723d1df4 | 9 | Description=MD Metadata Monitor on %I |
0f7bdf89 JS |
10 | DefaultDependencies=no |
11 | Before=initrd-switch-root.target | |
ea109700 | 12 | Documentation=man:mdmon(8) |
0f9a4b3e N |
13 | # Allow mdmon to keep running after switchroot, until a new |
14 | # instance is started. | |
15 | IgnoreOnIsolate=true | |
0f7bdf89 JS |
16 | |
17 | [Service] | |
8d1d32bb N |
18 | # The mdmon starting in the initramfs (with dracut at least) |
19 | # cannot see sysfs after root is mounted, so we will have to | |
20 | # 'takeover'. As the '--offroot --takeover' don't hurt when | |
21 | # not necessary, are are useful with root-on-md in dracut, | |
22 | # have them always present. | |
6660e33e | 23 | ExecStart=BINDIR/mdmon --foreground --offroot --takeover %I |
8d1d32bb N |
24 | # Don't set the PIDFile. It isn't necessary (systemd can work |
25 | # it out) and systemd will remove it when transitioning from | |
26 | # initramfs to rootfs. | |
27 | #PIDFile=/run/mdadm/%I.pid | |
0f9a4b3e N |
28 | # The default slice is system-mdmon.slice which Conflicts |
29 | # with shutdown, causing mdmon to exit early. So use system.slice. | |
30 | Slice=system.slice |