From: Marcin Krol Date: Mon, 16 Apr 2018 09:39:19 +0000 (+0000) Subject: - fixed post/postun broken by PLD merge X-Git-Url: https://git.tld-linux.org/?p=packages%2Flvm2.git;a=commitdiff_plain;h=1ca0b9084e2f6e53d0e804ffd7ebd5ab84c8d54f;hp=8780299f67c78624188b5a2a8d85e69e6724be4a - fixed post/postun broken by PLD merge --- diff --git a/lvm2.spec b/lvm2.spec index ff787b3..de25117 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -30,10 +30,6 @@ %undefine with_lvmpolld %endif -# only glibc possible on SPARC -%ifarch sparc sparcv9 sparc64 -%define with_glibc 1 -%endif # if one of the *libc is enabled disable default dietlibc %if %{with dietlibc} && %{with uClibc} %undefine with_dietlibc @@ -539,13 +535,22 @@ cp -a libdm/libdevmapper.a $RPM_BUILD_ROOT%{_libdir} rm -rf $RPM_BUILD_ROOT %post +/sbin/chkconfig --add lvm2-lvmetad +%service lvm2-lvmetad restart /sbin/chkconfig --add lvm2-monitor %service lvm2-monitor restart +/sbin/chkconfig --add lvm2-lvmpolld +%service lvm2-lvmpolld restart +# no service restart available /sbin/chkconfig --add blk-availability # no service blk-availability restart %postun if [ "$1" = "0" ]; then + %service lvm2-lvmetad stop + /sbin/chkconfig --del lvm2-lvmetad + %service lvm2-lvmpolld stop + /sbin/chkconfig --del lvm2-lvmpolld %service lvm2-monitor stop /sbin/chkconfig --del lvm2-monitor #no service blk-availability stop