mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-11 10:29:18 +02:00
17 lines
375 B
Bash
17 lines
375 B
Bash
#!/bin/bash
|
|
|
|
case $1 in
|
|
help)
|
|
echo "bin/epp_proxy reload"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
# get the status tuple from gameserver
|
|
Status=$(relx_nodetool eval "exit(whereis(epp_tls_acceptor), normal).")
|
|
|
|
# now print it out
|
|
code="Json = io:format(\"~p~n\", [$Status]),
|
|
halt()."
|
|
echo $(erl -boot no_dot_erlang -sasl errlog_type error -noshell -eval "$code")
|