Skip to contentSkip to conversation

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

PATCH Peter Rajnoha 1 participant 1 message Apr 11, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=03d6cfdd99fb1c2fd85721ab6faebbb1b6658873
Commit:        03d6cfdd99fb1c2fd85721ab6faebbb1b6658873
Parent:        6064b9f1b283c63cc3710555a04d2df0c6357cb0
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Thu Apr 11 12:22:27 2019 +0200
Committer:     Peter Rajnoha <[email protected]>
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(-)
scripts/lvm2_lvmetad_systemd_red_hat.socket.in +2 -0
index 3201537..2663c72 100644
@@ -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
scripts/lvm2_lvmpolld_systemd_red_hat.socket.in +2 -0
index 743669e..0537d7f 100644
@@ -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