A retry command by golang on CLI.
Retry n times with interval for your command until to zero for exit-status.
$ retry -i 5s -c 2 /usr/lib64/nagios/plugins/check_http -w 10 -c 15 -H localhost
To install, use go get
:
$ go get -d github.com/linyows/go-retry
go test ./...
command and confirm that it passesgofmt -s