summaryrefslogtreecommitdiffstats
path: root/scripts/lvm2_lvmetad_systemd_red_hat.service.in
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2012-02-23 11:24:07 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2012-02-23 11:24:07 +0000
commitda532741c98678536b7620e6121b45ef0f28b11b (patch)
treed56f50dbb6501f32400f717a632071b454675a56 /scripts/lvm2_lvmetad_systemd_red_hat.service.in
parent2c893455adb780e38ce1b2d6b45272bb9425731c (diff)
downloadlvm2-da532741c98678536b7620e6121b45ef0f28b11b.tar.gz
lvm2-da532741c98678536b7620e6121b45ef0f28b11b.tar.xz
lvm2-da532741c98678536b7620e6121b45ef0f28b11b.zip
Add LVMetaD systemd units.
Diffstat (limited to 'scripts/lvm2_lvmetad_systemd_red_hat.service.in')
-rw-r--r--scripts/lvm2_lvmetad_systemd_red_hat.service.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/lvm2_lvmetad_systemd_red_hat.service.in b/scripts/lvm2_lvmetad_systemd_red_hat.service.in
new file mode 100644
index 00000000..f0f603ed
--- /dev/null
+++ b/scripts/lvm2_lvmetad_systemd_red_hat.service.in
@@ -0,0 +1,15 @@
+[Unit]
+Description=LVM2 metadata daemon
+Requires=lvm2-lvmetad.socket
+After=lvm2-lvmetad.socket
+DefaultDependencies=no
+Conflicts=shutdown.target
+
+[Service]
+Type=forking
+ExecStart=@sbindir@/lvmetad
+ExecReload=@sbindir@/lvmetad -R
+PIDFile=/var/run/lvm/lvmetad.pid
+
+[Install]
+WantedBy=sysinit.target