💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## code <details> <summary>uporgserver_guard </summary> ``` #!/bin/bash cd $(dirname ${0}) while [ 2 -ge 1 ]; do ./uporgserver_starter > /dev/null 2>&1 sleep 30 done exit 0 ``` </details> <br/> <details> <summary>uporgserver_starter</summary> ``` #!/bin/bash cd $(dirname ${0}) APP_NAME="UpOrgServer" if [[ $(ps -ef | grep -v 'grep' | grep "$APP_NAME" |wc -l) -ge 1 ]]; then echo "${APP_NAME} is already running." else nohup ./${APP_NAME} > /dev/null 2>&1 & echo "${APP_NAME} is starting ..." sleep 1 fi exit 0 ``` </details> <br/>