mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
chore(dev): Fix SIGKILL not working on the plugin server (#36671)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user