Libvirt: Fix update.sh script
Message ID | 1472841323-584-1-git-send-email-jonatan.schlag@ipfire.org |
---|---|
State | Accepted |
Commit | 3943a54036fcce71d57b1bbd2c2759c64c5f1f86 |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (hedwig.ipfire.org [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id 80A0F61C2D for <patchwork@ipfire.org>; Fri, 2 Sep 2016 20:35:37 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 2C187C2C; Fri, 2 Sep 2016 20:35:29 +0200 (CEST) Received: from fangorn.local.familyschlag (dslb-088-073-199-181.088.073.pools.vodafone-ip.de [88.73.199.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id F0673C29; Fri, 2 Sep 2016 20:35:25 +0200 (CEST) From: Jonatan Schlag <jonatan.schlag@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] Libvirt: Fix update.sh script Date: Fri, 2 Sep 2016 20:35:23 +0200 Message-Id: <1472841323-584-1-git-send-email-jonatan.schlag@ipfire.org> X-Mailer: git-send-email 2.1.4 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Jonatan Schlag
Sept. 3, 2016, 4:35 a.m. UTC
The virtlogd could only be restarted when the daemons run. The update.sh
script tried to restart the daemon no matter if the daemons run or not.
This behaviour produce problems.
An If statement now checks if the daemon runs or not and execute the
command that is suitable for the situation.
Fixes: #11172
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
lfs/libvirt | 2 +-
src/paks/libvirt/update.sh | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)