[lvm-devel] stable-2.02 - systemd: put back DefaultDependencies=no for lvmpolld and lvmetad socket unit

Peter Rajnoha prajnoha at sourceware.org
Thu Apr 11 10:26:06 UTC 2019


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=03d6cfdd99fb1c2fd85721ab6faebbb1b6658873
Commit:        03d6cfdd99fb1c2fd85721ab6faebbb1b6658873
Parent:        6064b9f1b283c63cc3710555a04d2df0c6357cb0
Author:        Peter Rajnoha <prajnoha at redhat.com>
AuthorDate:    Thu Apr 11 12:22:27 2019 +0200
Committer:     Peter Rajnoha <prajnoha at redhat.com>
CommitterDate: Thu Apr 11 12:25:45 2019 +0200

systemd: put back DefaultDependencies=no for lvmpolld and lvmetad socket unit

Previous commit 0a726a7e268b31856615491809af73bda5d4d6f9 removed this
by mistake - we have to keep the DefaultDependencies=no - the
sockets.target is after sysinit.target.
---
 scripts/lvm2_lvmetad_systemd_red_hat.socket.in  |    2 ++
 scripts/lvm2_lvmpolld_systemd_red_hat.socket.in |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/scripts/lvm2_lvmetad_systemd_red_hat.socket.in b/scripts/lvm2_lvmetad_systemd_red_hat.socket.in
index 3201537..2663c72 100644
--- a/scripts/lvm2_lvmetad_systemd_red_hat.socket.in
+++ b/scripts/lvm2_lvmetad_systemd_red_hat.socket.in
@@ -1,6 +1,8 @@
 [Unit]
 Description=LVM2 metadata daemon socket
 Documentation=man:lvmetad(8)
+DefaultDependencies=no
+Conflicts=shutdown.target
 
 [Socket]
 ListenStream=@DEFAULT_RUN_DIR@/lvmetad.socket
diff --git a/scripts/lvm2_lvmpolld_systemd_red_hat.socket.in b/scripts/lvm2_lvmpolld_systemd_red_hat.socket.in
index 743669e..0537d7f 100644
--- a/scripts/lvm2_lvmpolld_systemd_red_hat.socket.in
+++ b/scripts/lvm2_lvmpolld_systemd_red_hat.socket.in
@@ -1,6 +1,8 @@
 [Unit]
 Description=LVM2 poll daemon socket
 Documentation=man:lvmpolld(8)
+DefaultDependencies=no
+Conflicts=shutdown.target
 
 [Socket]
 ListenStream=@DEFAULT_RUN_DIR@/lvmpolld.socket




More information about the lvm-devel mailing list