Change Order

main
AhFei 2023-11-22 02:00:14 +08:00
parent 3749e5d7e7
commit fc9fffbba3
1 changed files with 7 additions and 7 deletions

View File

@ -22,11 +22,11 @@ fi
# step 0: prepare # step 0: prepare
OS_ARCH=$ARCHITECTURE OS_ARCH=$ARCHITECTURE
WORKDIR=${1} # 安装目录 server_address=${1} # rust_serverstatus 服务端网址
ssr_uid=${2} # rust_serverstatus 配置文件里用户名对应的密码 WORKDIR=${2} # 安装目录
passwd=${3} # rust_serverstatus 配置文件里的用户名 user_name=${3} # 本机运行这个 rust_serverstatus 的用户
server_address=${4} # rust_serverstatus 服务端网址 ssr_uid=${4} # rust_serverstatus 配置文件里用户名对应的密码
user_name=${5} # 本机运行这个 rust_serverstatus 的用户 ssr_passwd=${5} # rust_serverstatus 配置文件里的用户名
install_server_or_not=${6} # 空着就不安装服务端 install_server_or_not=${6} # 空着就不安装服务端
mkdir -p ${WORKDIR} mkdir -p ${WORKDIR}
@ -54,7 +54,7 @@ Group=${user_name}
Environment="RUST_BACKTRACE=1" Environment="RUST_BACKTRACE=1"
WorkingDirectory=${WORKDIR} WorkingDirectory=${WORKDIR}
# EnvironmentFile=~/myserve/serverstatus/.env # 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 ExecReload=/bin/kill -HUP \$MAINPID
Restart=on-failure Restart=on-failure