Skip to content

Commit 54e654f

Browse files
rcourtmanclaude
andcommitted
fix: ensure complete process cleanup during Pulse removal
- Added pkill commands to terminate any remaining Pulse processes during removal - Prevents port conflicts when reinstalling after removal - Uses graceful kill first, then force kill after delay - Fixes issue where orphaned processes prevented service restart 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0154fd0 commit 54e654f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/install-pulse.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,13 @@ perform_remove() {
667667
systemctl stop "$SERVICE_NAME"
668668
fi
669669
systemctl disable "$SERVICE_NAME" &>/dev/null || true
670+
671+
# Kill any remaining Pulse processes to prevent port conflicts
672+
print_info "Ensuring all Pulse processes are stopped..."
673+
pkill -f "/opt/pulse/server/index.js" 2>/dev/null || true
674+
sleep 2
675+
pkill -9 -f "/opt/pulse/server/index.js" 2>/dev/null || true
676+
670677
rm -f "/etc/systemd/system/$SERVICE_NAME"
671678
systemctl daemon-reload
672679

0 commit comments

Comments
 (0)