mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 19:55:52 +02:00
Libvirt: Fix update.sh script
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> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
59d8f64e50
commit
ad7e47072b
@@ -33,7 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
SUP_ARCH = i586 x86_64
|
||||
PROG = libvirt
|
||||
PAK_VER = 10
|
||||
PAK_VER = 11
|
||||
|
||||
DEPS = "libpciaccess libyajl ncat qemu"
|
||||
|
||||
|
||||
@@ -63,7 +63,13 @@ chown -R nobody:kvm /var/lib/libvirt/images
|
||||
restore_backup ${NAME}
|
||||
|
||||
#restart virtlogd to use the new version
|
||||
if [ -f "/var/run/virtlogd.pid" ]; then
|
||||
# the daemon runs restart him
|
||||
/etc/init.d/virtlogd restart
|
||||
else
|
||||
# the daemon runs not start him
|
||||
/etc/init.d/virtlogd start
|
||||
fi
|
||||
|
||||
start_service --background libvirtd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user