File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ node_check=false
24
24
farmer_check=false
25
25
harvester_check=false
26
26
wallet_check=false
27
+ timelord_check=false
28
+ crawler_check=false
27
29
28
30
# Determine which services to healthcheck based on ${service}
29
31
# shellcheck disable=SC2154,SC2206
36
38
farmer_check=true
37
39
harvester_check=true
38
40
wallet_check=true
41
+ timelord_check=true
42
+ crawler_check=true
39
43
;;
40
44
node)
41
45
node_check=true
57
61
farmer-only)
58
62
farmer_check=true
59
63
;;
64
+ timelord)
65
+ timelord_check=true
66
+ ;;
67
+ timelord-only)
68
+ timelord_check=true
69
+ ;;
70
+ crawler)
71
+ crawler_check=true
72
+ ;;
73
+ seeder)
74
+ crawler_check=true
75
+ ;;
60
76
wallet)
61
77
wallet_check=true
62
78
;;
@@ -110,6 +126,32 @@ if [[ ${harvester_check} == "true" ]]; then
110
126
fi
111
127
fi
112
128
129
+ if [[ ${timelord_check} == " true" ]]; then
130
+ curl -X POST --fail \
131
+ --cert " ${CHIA_ROOT} /config/ssl/timelord/private_timelord.crt" \
132
+ --key " ${CHIA_ROOT} /config/ssl/timelord/private_timelord.key" \
133
+ -d ' {}' -k -H " Content-Type: application/json" https://localhost:8557/healthz
134
+
135
+ # shellcheck disable=SC2181
136
+ if [[ " $? " -ne 0 ]]; then
137
+ logger " $( dt) Timelord healthcheck failed"
138
+ exit 1
139
+ fi
140
+ fi
141
+
142
+ if [[ ${crawler_check} == " true" ]]; then
143
+ curl -X POST --fail \
144
+ --cert " ${CHIA_ROOT} /config/ssl/crawler/private_crawler.crt" \
145
+ --key " ${CHIA_ROOT} /config/ssl/crawler/private_crawler.key" \
146
+ -d ' {}' -k -H " Content-Type: application/json" https://localhost:8561/healthz
147
+
148
+ # shellcheck disable=SC2181
149
+ if [[ " $? " -ne 0 ]]; then
150
+ logger " $( dt) Crawler healthcheck failed"
151
+ exit 1
152
+ fi
153
+ fi
154
+
113
155
if [[ ${wallet_check} == " true" ]]; then
114
156
curl -X POST --fail \
115
157
--cert " ${CHIA_ROOT} /config/ssl/wallet/private_wallet.crt" \
You can’t perform that action at this time.
0 commit comments