mizzkey/healthcheck.sh

8 lines
262 B
Bash
Raw Normal View History

#!/bin/bash
2024-07-01 02:33:26 +02:00
# SPDX-FileCopyrightText: syuilo and misskey-project , Type4ny-project
# SPDX-License-Identifier: AGPL-3.0-only
2024-07-01 02:33:26 +02:00
PORT=$(grep '^port:' /type4ny/.config/default.yml | awk 'NR==1{print $2; exit}')
curl -Sfso/dev/null "http://localhost:${PORT}/healthz"