[libvirt] [PATCH] Restart libvirtd upon RPM upgrade

Daniel P. Berrange berrange at redhat.com
Fri Sep 11 14:04:36 UTC 2009


* libvirt.spec.in: Restart libvirtd in %post
---
 libvirt.spec.in |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 0157eee..8d4c8cc 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -471,6 +471,9 @@ fi
 %endif
 
 /sbin/chkconfig --add libvirtd
+if [ "$1" -ge "1" ]; then
+	/sbin/service libvirtd condrestart > /dev/null 2>&1
+fi
 %endif
 
 %preun
-- 
1.6.2.5




More information about the libvir-list mailing list