From: Marcin Krol Date: Sun, 21 Oct 2018 20:51:43 +0000 (+0000) Subject: - stop obsolete services during install X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=25f4ed9f9eee36f5989dfec5b5ad8ea3594b0f51;p=packages%2Flvm2.git - stop obsolete services during install --- diff --git a/lvm2.spec b/lvm2.spec index 99819e9..968de4d 100644 --- 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