We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4000e3c commit 7c6c213Copy full SHA for 7c6c213
images/arkmanager/entrypoint.sh
@@ -453,7 +453,11 @@ monitor_shutdown() {
453
# Kill any background monitoring processes
454
[[ -n "${STATUS_MONITOR_PID}" ]] && kill "${STATUS_MONITOR_PID}" 2>/dev/null
455
[[ -n "${SHUTDOWN_MONITOR_PID}" ]] && kill "${SHUTDOWN_MONITOR_PID}" 2>/dev/null
456
- # Exit the container
+ # Give processes a moment to clean up
457
+ sleep 1
458
+ # Force kill the container by killing PID 1 (init process)
459
+ kill -TERM 1 2>/dev/null || kill -KILL 1 2>/dev/null || true
460
+ # Exit the container as fallback
461
exit 0
462
fi
463
0 commit comments