Change Order
parent
3749e5d7e7
commit
fc9fffbba3
14
one-touch.sh
14
one-touch.sh
|
@ -22,12 +22,12 @@ fi
|
|||
|
||||
# step 0: prepare
|
||||
OS_ARCH=$ARCHITECTURE
|
||||
WORKDIR=${1} # 安装目录
|
||||
ssr_uid=${2} # rust_serverstatus 配置文件里用户名对应的密码
|
||||
passwd=${3} # rust_serverstatus 配置文件里的用户名
|
||||
server_address=${4} # rust_serverstatus 服务端网址
|
||||
user_name=${5} # 本机运行这个 rust_serverstatus 的用户
|
||||
install_server_or_not=${6} # 空着就不安装服务端
|
||||
server_address=${1} # rust_serverstatus 服务端网址
|
||||
WORKDIR=${2} # 安装目录
|
||||
user_name=${3} # 本机运行这个 rust_serverstatus 的用户
|
||||
ssr_uid=${4} # rust_serverstatus 配置文件里用户名对应的密码
|
||||
ssr_passwd=${5} # rust_serverstatus 配置文件里的用户名
|
||||
install_server_or_not=${6} # 空着就不安装服务端
|
||||
|
||||
mkdir -p ${WORKDIR}
|
||||
cd ${WORKDIR}
|
||||
|
@ -54,7 +54,7 @@ Group=${user_name}
|
|||
Environment="RUST_BACKTRACE=1"
|
||||
WorkingDirectory=${WORKDIR}
|
||||
# EnvironmentFile=~/myserve/serverstatus/.env
|
||||
ExecStart=${WORKDIR}/stat_client -a "${server_address}" -u ${ssr_uid} -p ${passwd}
|
||||
ExecStart=${WORKDIR}/stat_client -a "${server_address}" -u ${ssr_uid} -p ${ssr_passwd}
|
||||
ExecReload=/bin/kill -HUP \$MAINPID
|
||||
Restart=on-failure
|
||||
|
||||
|
|
Loading…
Reference in New Issue