UNPKG

215 Bapplication/x-shView Raw
1#!/bin/sh
2
3# 查询健康检查结果
4result=$(curl -s --no-buffer -XGET --unix-socket /tmp/service_starter_health_checking.sock http://1)
5
6if [ "$result" = "0" ]; then
7 exit 0
8else
9 echo $result
10 exit 1
11fi
\No newline at end of file