2015-11-01から1ヶ月間の記事一覧

Wait for a remote service to start up

Sometimes service startup must wait for another service on a remote host. For example, Sensu Client requires that RabbitMQ has already started up.In a shell script: waitforport(){ local host=$1 port=$2 interval=$3 retries=$4 i for i in `se…