[lvm2] Restart clvmd on update.

Milan Broz mbroz at fedoraproject.org
Wed Mar 28 11:49:49 UTC 2012


commit 7a0bc66b98805a959a44c12dc5135a097044afd6
Author: Milan Broz <mbroz at redhat.com>
Date:   Wed Mar 28 13:49:23 2012 +0200

    Restart clvmd on update.

 lvm2.spec |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lvm2.spec b/lvm2.spec
index 47e06d2..456e09f 100644
--- a/lvm2.spec
+++ b/lvm2.spec
@@ -428,6 +428,10 @@ Extensions to LVM2 to support clusters.
 %post cluster
 /sbin/chkconfig --add clvmd
 
+if [ "$1" -gt "1" ] ; then
+	/usr/sbin/clvmd -S >/dev/null 2>&1 || :
+fi
+
 %preun cluster
 if [ "$1" = 0 ]; then
 	/sbin/chkconfig --del clvmd


More information about the scm-commits mailing list