Skip to content

Commit b310ce7

Browse files
committed
clean up locks (if they exist) on unclean shutdowns
1 parent 82418d2 commit b310ce7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

15/root/init

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ set -e
66

77
echo "[init] Starting container initialization..."
88

9+
# Clean stale s6-log locks from previous unclean shutdown
10+
find /config/logs -name "lock" -delete 2>/dev/null || true
11+
912
# Save environment for services
1013
mkdir -p /run/s6/container-environment
1114
export -p > /run/s6/container-environment/all_envs

0 commit comments

Comments
 (0)