1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

systemd: add conficting sockets

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.
This commit is contained in:
Zdenek Kabelac 2018-06-12 16:27:42 +02:00
parent 716199334c
commit 9546edeef9
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
Description=LVM2 metadata daemon socket Description=LVM2 metadata daemon socket
Documentation=man:lvmetad(8) Documentation=man:lvmetad(8)
DefaultDependencies=no DefaultDependencies=no
Conflicts=shutdown.target
[Socket] [Socket]
ListenStream=@DEFAULT_RUN_DIR@/lvmetad.socket ListenStream=@DEFAULT_RUN_DIR@/lvmetad.socket

View File

@ -2,6 +2,7 @@
Description=LVM2 poll daemon socket Description=LVM2 poll daemon socket
Documentation=man:lvmpolld(8) Documentation=man:lvmpolld(8)
DefaultDependencies=no DefaultDependencies=no
Conflicts=shutdown.target
[Socket] [Socket]
ListenStream=@DEFAULT_RUN_DIR@/lvmpolld.socket ListenStream=@DEFAULT_RUN_DIR@/lvmpolld.socket