]> TLD Linux GIT Repositories - packages/lvm2.git/commitdiff
- stop obsolete services during install
authorMarcin Krol <hawk@tld-linux.org>
Sun, 21 Oct 2018 20:51:43 +0000 (20:51 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 21 Oct 2018 20:51:43 +0000 (20:51 +0000)
lvm2.spec

index 99819e97e3219edca7677dca2bd26f0f259fe857..968de4d8e6218d262e7a76696f3018afa2593943 100644 (file)
--- a/lvm2.spec
+++ b/lvm2.spec
@@ -32,7 +32,7 @@ Summary:      The new version of Logical Volume Manager for Linux
 Summary(pl.UTF-8):     Nowa wersja Logical Volume Managera dla Linuksa
 Name:          lvm2
 Version:       2.03.00
-Release:       1
+Release:       1.1
 License:       GPL v2 and LGPL v2.1
 Group:         Applications/System
 Source0:       ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
@@ -373,6 +373,14 @@ cp -a libdm/libdevmapper.a $RPM_BUILD_ROOT%{_libdir}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerin -- lvm2 < 2.03.00
+%service lvm2-lvmetad stop
+/sbin/chkconfig --del lvm2-lvmetad
+
+%triggerin -- lvm2-clvmd
+%service clvmd stop
+/sbin/chkconfig --del clvmd
+
 %post
 /sbin/chkconfig --add lvm2-monitor
 %service lvm2-monitor restart