Skip to content

Commit

Permalink
Update uninstall.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosalmi committed Aug 14, 2024
1 parent c8471c1 commit 0597b4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ LOG_PATH="/var/log/lxc_autoscale.log"
BACKUP_DIR="/var/lib/lxc_autoscale/backups"
LOCK_FILE="/var/lock/lxc_autoscale.lock"

# Dirty workaround to force existing process to terminate
echo "⚠️ Dirty workaround to force existing process to terminate.."
kill -9 $(ps aux | grep lxc_autoscale | grep -v grep | awk '{print $2}')

# Function to kill the process if it's running
kill_process() {
local pids=$(pgrep -f "$INSTALL_PATH")
Expand Down

0 comments on commit 0597b4e

Please sign in to comment.