#!/bin/sh

set -ex
gitlab-workhorse &
timeout 15 bash -c 'until echo > /dev/tcp/localhost/8181; do sleep 0.5; done'
netstat -ntap| grep 8181
echo "gitlab-worhorse is listening on port 8181"
pkill gitlab-workhors
