chore(dev): Fix SIGKILL not working on the plugin server (#36671)

This commit is contained in:
Michael Matloka
2025-08-18 17:22:05 +02:00
committed by GitHub
parent 677a4e6db2
commit aec9c6efe5

View File

@@ -71,8 +71,18 @@ else
echo "🔁 Starting plugin server in a resiliency loop..."
while true; do
$cmd
echo "💥 Plugin server crashed!"
echo "⌛️ Waiting 2 seconds before restarting..."
sleep 2
status=$?
# Check if child was terminated by SIGKILL (kill -9 node)
if [ $status -gt 128 ]; then
sig=$((status - 128))
if [ $sig -eq 9 ]; then
echo "☠️ Plugin server killed by SIGKILL, breaking loop"
break
fi
else
echo "💥 Plugin server crashed!"
echo "⌛️ Waiting 2 seconds before restarting..."
sleep 2
fi
done
fi