File lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch of Package lvm2.3893

From 4b846bba24f8458130fa951f9248a7540084f641 Mon Sep 17 00:00:00 2001
From: Liuhua Wang <>
Date: Tue, 29 Dec 2015 15:15:27 +0800
Subject: [PATCH] lvm2-lvmetad.service add Also=lvm2-lvmetad.socket

In order to avoid lvm2-lvmetad.service being activated when package
updating due to `systemctl restart/try-restart .socket` results in
corresponding service being activeted, we removed lvm2-lvmetad.socket
from %preun and %postun(bsc#914415), which causes brokent lvm2-lvmetad
.socket symbolic link left when package being uninstalled.

Add 'Also=lvm2-lvmetad.socket' in '[Install]' section of lvm2-lvmetad.
service to remove lvm2-lvmetad.socket when disable lvm2-lvmetad.service.

References: bsc#960044
 scripts/ | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/ b/scripts/
index 8f4c60d..1deca87 100644
--- a/scripts/
+++ b/scripts/
@@ -15,4 +15,5 @@ Restart=on-abort
openSUSE Build Service is sponsored by