mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-12 21:59:19 +02:00
add cln grpc status
This commit is contained in:
parent
0cce85d302
commit
caa2f4e659
@ -7,6 +7,7 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ];then
|
||||
echo "Usage:"
|
||||
echo "cl-plugin.cln-grpc.sh install - called by build_sdcard.sh"
|
||||
echo "cl-plugin.cln-grpc.sh [on|off] <testnet|mainnet|signet>"
|
||||
echo "cl-plugin.cln-grpc.sh status <testnet|mainnet|signet>"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
@ -44,6 +45,13 @@ if [ "$1" = install ]; then
|
||||
echo "# cl-plugin.cln-grpc.sh install --> done"
|
||||
exit 0
|
||||
|
||||
elif [ "$1" = status ]; then
|
||||
|
||||
portActive=$(nc -vz 127.0.0.1 $PORT 2>&1 | grep -c "succeeded")
|
||||
echo "port=${PORT}"
|
||||
echo "portActive=${portActive}"
|
||||
exit 0
|
||||
|
||||
elif [ "$1" = on ]; then
|
||||
buildGRPCplugin
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user