summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-12-12 03:20:32 +0100
committerNeilBrown <neilb@suse.de>2013-12-12 03:20:32 +0100
commit79d8213f29046c9b184f9cb4af87878f937e10a9 (patch)
tree149add49cdee969988433d0dd465c48a1c2bc3be /systemd
parentudev rules: try "mdadm -I" on "change" events. (diff)
downloadmdadm-79d8213f29046c9b184f9cb4af87878f937e10a9.tar.xz
mdadm-79d8213f29046c9b184f9cb4af87878f937e10a9.zip
mdamd-last-resort: add a Conflicts line to stop the timer.
When the md device actually appears we want to stop the timer and not bother with the mdadm-last-resort@.server. In particular, running that causes confusing messages and is in general best avoided. Fortuantely this can simply be achieved with a Conflicts= line Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'systemd')
-rw-r--r--systemd/mdadm-last-resort@.timer1
1 files changed, 1 insertions, 0 deletions
diff --git a/systemd/mdadm-last-resort@.timer b/systemd/mdadm-last-resort@.timer
index 6a1cd568..52b3f227 100644
--- a/systemd/mdadm-last-resort@.timer
+++ b/systemd/mdadm-last-resort@.timer
@@ -1,6 +1,7 @@
[Unit]
Description=Timer to wait for more drives before activating degraded array.
DefaultDependencies=no
+Conflicts=sys-devices-virtual-block-%i.device
[Timer]
OnActiveSec=30