From 7d166f53d820315ef4a8b02e8318a51f95acfdab Mon Sep 17 00:00:00 2001 From: Mayeul Cantan Date: Sun, 28 Apr 2024 13:36:54 +0200 Subject: [PATCH] Python -> Go upgrade: try harder to stop signald and processes --- scripts/upgrade-pre-0.5.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade-pre-0.5.sh b/scripts/upgrade-pre-0.5.sh index e3a5275..311c942 100755 --- a/scripts/upgrade-pre-0.5.sh +++ b/scripts/upgrade-pre-0.5.sh @@ -16,6 +16,12 @@ signald_data="/var/lib/signald" signald_exe="/usr/bin/signald" signald_user="signald" +# Stop signald, and force stop all processes just in case +# We do not care about data loss, since we are going to delete the data anyway +ynh_systemd_action --service_name="signald" --action="stop" +sleep 10 # Temporisation to allow signald to stop gracefully +pkill -u "$signald_user" --signal 9 || true + # Remove rustup if [ -e "$install_dir/.rustup" ]; then ynh_exec_as "$app" "$install_dir/.cargo/bin/rustup" self uninstall