update init for containers for recent changes

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-08-10 14:57:53 +01:00
parent 680fafd705
commit 0e65f04ab4
5 changed files with 33 additions and 51 deletions

View File

@@ -1,10 +1,11 @@
#!/bin/sh
# execute other init processes
INITS="$(find /etc/init.d -type f | sort)"
INITS="$(find /etc/init.d ! -type d 2>/dev/null | sort)"
for f in $INITS
do
$f &
$f
done
wait
# wait forever to keep container open
while true; do sleep 2147483647; done