🗃️ Committing everything that changed 🗃️
Some checks failed
release-tag / release-image (push) Has been cancelled

Dockerfile
rootfs/usr/local/bin/entrypoint.sh
This commit is contained in:
casjay
2025-09-05 22:18:37 -04:00
parent fa70f106f3
commit 191f71b21c
2 changed files with 7 additions and 1 deletions

View File

@@ -474,6 +474,12 @@ start)
# Execute primary command
*)
if [ $# -eq 0 ]; then
# Clean stale pid files from previous container runs on restart
if [ ! -f "/run/init.d/entrypoint.pid" ]; then
START_SERVICES="yes"
rm -f /run/__start_init_scripts.pid /run/init.d/*.pid /run/*.pid
fi
if [ "$START_SERVICES" = "yes" ] || [ ! -f "/run/init.d/entrypoint.pid" ]; then
echo "$$" >"/run/init.d/entrypoint.pid"
__start_init_scripts "/usr/local/etc/docker/init.d"