Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiwangly2 authored Nov 12, 2023
1 parent 2ca39c7 commit c53af28
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,16 @@ case "$1" in
sleep 1
$0 start
;;
status)
pgrep -f "/root/connect_jxyy_network -config /root/config.yaml" > /dev/null
if [ $? -eq 0 ]; then
echo "connect_jxyy_network service is running."
else
echo "connect_jxyy_network service is not running."
fi
;;
*)
echo "Usage: $0 {start|stop|restart}"
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
Expand Down

0 comments on commit c53af28

Please sign in to comment.