Skip to content

Commit

Permalink
healthcheck: Check service status instead of pinging Kamailio
Browse files Browse the repository at this point in the history
Closes #7.
  • Loading branch information
florian-h05 committed Sep 24, 2023
1 parent 79175c9 commit 589447b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion healthcheck.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
curl --include --no-buffer --header "Connection: Upgrade" --header "Upgrade: websocket" http://FILL_MY_IP:8090 || exit 1
if ! supervisorctl status rtpengine | grep -q 'RUNNING'; then exit 1; fi
if ! supervisorctl status kamailio | grep -q 'RUNNING'; then exit 1; fi

0 comments on commit 589447b

Please sign in to comment.