summaryrefslogtreecommitdiff
path: root/healthcheck.sh
blob: dcfcf7678618dc06e46a8e1f73294b89bfa78c4e (plain)
1
2
3
4
5
6
7
#!/bin/bash

# SPDX-FileCopyrightText: syuilo and misskey-project
# SPDX-License-Identifier: AGPL-3.0-only

PORT=$(grep '^port:' /misskey/.config/default.yml | awk 'NR==1{print $2; exit}')
curl -Sfso/dev/null "http://localhost:${PORT}/healthz"