mirror of
https://github.com/YunoHost-Apps/mautrix_signal_ynh.git
synced 2024-09-03 19:46:07 +02:00
Python -> Go upgrade: try harder to stop signald and processes
This commit is contained in:
parent
251f926990
commit
7d166f53d8
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue