From d7e000b2496288896faa02c07bd8a7b3e6620669 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 19 Feb 2012 16:01:48 +0000 Subject: [PATCH] - rel 3 - added reload to sysv init script Changed files: libvirt.init -> 1.3 libvirt.spec -> 1.63 --- libvirt.init | 17 ++++++++++++++++- libvirt.spec | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/libvirt.init b/libvirt.init index 5f40f1f..732c3cd 100644 --- a/libvirt.init +++ b/libvirt.init @@ -51,6 +51,18 @@ stop() { fi } +reload() { + if [ ! -f /var/lock/subsys/libvirtd ]; then + msg_not_running libvirtd + RETVAL=7 + return + fi + + msg_reloading libvirtd + killproc libvirtd -HUP + RETVAL=$? +} + condrestart() { if [ -f /var/lock/subsys/libvirtd ]; then stop @@ -76,11 +88,14 @@ case "$1" in try-restart) condrestart 0 ;; + reload|force-reload) + reload + ;; status) status libvirtd ;; *) - msg_usage "$0 {start|stop|restart|try-restart|status}" + msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}" exit 3 esac diff --git a/libvirt.spec b/libvirt.spec index e73108e..e41080f 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -35,7 +35,7 @@ Summary: Toolkit to interact with virtualization capabilities Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji Name: libvirt Version: 0.9.10 -Release: 2 +Release: 3 License: LGPL v2.1+ Group: Base/Kernel Source0: ftp://ftp.libvirt.org/libvirt/%{name}-%{version}.tar.gz -- 2.44.0