From: Ian Campbell Subject: [PATCH OSSTEST v2 14/18] libvirt: Implement initscript restart which has some hope of working. Date: Tue, 2 Dec 2014 16:04:55 +0000 Message-ID: <1417536299-1810-14-git-send-email-ian.campbell@citrix.com> References: <1417536141.29004.6.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1417536141.29004.6.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Jim Fehlig , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Campbell --- ts-libvirt-build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ts-libvirt-build b/ts-libvirt-build index 940c034..878d4e2 100755 --- a/ts-libvirt-build +++ b/ts-libvirt-build @@ -140,8 +140,10 @@ case "$1" in [ "$VERBOSE" != no ] && log_end_msg $? ;; restart) - stop - start + [ "$VERBOSE" != no ] && log_daemon_msg "Restarting $DESC" "$DAEMON" + start-stop-daemon --oknodo --stop --pidfile $PIDFILE --exec $DAEMON + start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- -d $libvirtd_opts + [ "$VERBOSE" != no ] && log_end_msg $? ;; reload|force-reload) start-stop-daemon --stop --signal 1 --quiet --pidfile \ -- 2.1.1