Commit 5e57029c authored by Jose Borreguero's avatar Jose Borreguero
Browse files

Check status of SSH daemon periodically


Signed-off-by: default avatarJose Borreguero <borreguero@gmail.com>
parent 2574f278
Pipeline #197002 passed with stages
in 5 minutes and 35 seconds
......@@ -13,6 +13,8 @@ fi
# start the ssh daemon
/etc/init.d/ssh start
# hack preventing container from exiting
# uncomment only for debugging purposes
tail -f /dev/null
# check the deamon is up every 60 seconds
while : ; do
sleep 60
[[ "$(/etc/init.d/ssh status)" = "sshd is running." ]] || break
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment