summaryrefslogtreecommitdiffstats
path: root/abs/core/lvm2/lvm-monitoring.service
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2014-02-16 23:54:48 (GMT)
committerJames Meyer <james.meyer@operamail.com>2014-02-19 19:03:03 (GMT)
commita5ab0f4ea7aea271cd87c75a9cdfac595dcc97b7 (patch)
treed711f3e6f9942a4399d4704e566f5447da68cf89 /abs/core/lvm2/lvm-monitoring.service
parente9cd17be0f57ba3a9abd1af55e306b5bb1a5dce6 (diff)
downloadlinhes_pkgbuild-a5ab0f4ea7aea271cd87c75a9cdfac595dcc97b7.zip
linhes_pkgbuild-a5ab0f4ea7aea271cd87c75a9cdfac595dcc97b7.tar.gz
linhes_pkgbuild-a5ab0f4ea7aea271cd87c75a9cdfac595dcc97b7.tar.bz2
lvm2
update binary path to /usr/bin refs #961
Diffstat (limited to 'abs/core/lvm2/lvm-monitoring.service')
-rw-r--r--abs/core/lvm2/lvm-monitoring.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/core/lvm2/lvm-monitoring.service b/abs/core/lvm2/lvm-monitoring.service
new file mode 100644
index 0000000..14b2d1d
--- /dev/null
+++ b/abs/core/lvm2/lvm-monitoring.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
+Documentation=man:dmeventd(8) man:lvcreate(8) man:lvchange(8) man:vgchange(8)
+Requires=dmeventd.socket
+After=dmeventd.socket lvmetad.socket
+DefaultDependencies=no
+Conflicts=shutdown.target
+
+[Service]
+Type=oneshot
+Environment=LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
+ExecStart=/usr/bin/lvm vgchange --monitor y
+ExecStop=/usr/bin/lvm vgchange --monitor n
+RemainAfterExit=yes
+
+[Install]
+WantedBy=sysinit.target