summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-06-26 14:09:36 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-26 14:43:17 +0200
commit2ead1639fd54bcf92d56cf7bf89b8d9cf4d6d24e (patch)
tree3912d906b16df3f7bb5ceddc20f760346b69de2b /client
parent756b483456158227cca9a52ae1b0bd82ec5dc5bd (diff)
#987 Kill gracefully ogClient
When the ogLive boot an OS with kexec, it did not kill gracefully ogClient. This provokes a hanging connection in the ogServer.
Diffstat (limited to 'client')
-rwxr-xr-xclient/engine/Boot.lib2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/engine/Boot.lib b/client/engine/Boot.lib
index aa77b4f9..376472ec 100755
--- a/client/engine/Boot.lib
+++ b/client/engine/Boot.lib
@@ -121,6 +121,7 @@ case "$TYPE" in
else
# Arranque BIOS: configurar kernel Linux con los parámetros leídos de su GRUB.
kexec -l "${MNTDIR}${KERNEL}" --append="$APPEND" --initrd="${MNTDIR}${INITRD}"
+ pkill ogclient
kexec -e &
fi
;;
@@ -153,6 +154,7 @@ case "$TYPE" in
# Modo de arranque en caliente (con kexec).
cp $OGLIB/grub4dos/* $MNTDIR # */ (Comentario Doxygen)
kexec -l $MNTDIR/grub.exe --append=--config-file="root (hd$[$1-1],$[$2-1]); chainloader (hd$[$1-1],$[$2-1])/$LOADER; tpm --init"
+ pkill ogclient
kexec -e &
else
# Modo de arranque por reinicio (con reboot).