Change Order
parent
3749e5d7e7
commit
fc9fffbba3
14
one-touch.sh
14
one-touch.sh
|
@ -22,12 +22,12 @@ 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}
|
||||||
cd ${WORKDIR}
|
cd ${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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue