]> sourceware.org Git - lvm2.git/commitdiff
systemd: add conficting sockets
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 12 Jun 2018 14:27:42 +0000 (16:27 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 14 Jun 2018 20:02:01 +0000 (22:02 +0200)
Since we are using "DefaultDependencies=no" we do not get automatic STOP
job on socket connection - so automatically refuse connection on
shutdown by adding this Conflict definition to socket Unit.

scripts/lvm2_lvmetad_systemd_red_hat.socket.in
scripts/lvm2_lvmpolld_systemd_red_hat.socket.in

index 9575f98a6310352bc9e5f7bb0c94a416d1965756..2663c724519b2f9b200603b223f2151586d5c521 100644 (file)
@@ -2,6 +2,7 @@
 Description=LVM2 metadata daemon socket
 Documentation=man:lvmetad(8)
 DefaultDependencies=no
+Conflicts=shutdown.target
 
 [Socket]
 ListenStream=@DEFAULT_RUN_DIR@/lvmetad.socket
index ca9f1237ffda4b9cc94bc1bb8a7b032a8e42895b..0537d7f3a09358f8bdaca71695eb970a0a8f7352 100644 (file)
@@ -2,6 +2,7 @@
 Description=LVM2 poll daemon socket
 Documentation=man:lvmpolld(8)
 DefaultDependencies=no
+Conflicts=shutdown.target
 
 [Socket]
 ListenStream=@DEFAULT_RUN_DIR@/lvmpolld.socket
This page took 0.042335 seconds and 5 git commands to generate.