\$MAINPID

main
AhFei 2023-08-18 01:04:52 +08:00
parent 458eb74c94
commit 6d65045ebe
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ Environment="RUST_BACKTRACE=1"
WorkingDirectory=${WORKSPACE}
# EnvironmentFile=~/myserve/serverstatus/.env
ExecStart=${WORKSPACE}/stat_client -a "${server_address}" -u ${uid} -p ${passwd}
ExecReload=/bin/kill -HUP $MAINPID
ExecReload=/bin/kill -HUP \$MAINPID
Restart=on-failure
[Install]
@ -75,7 +75,7 @@ Group=${user_name}
Environment="RUST_BACKTRACE=1"
WorkingDirectory=${WORKSPACE}
ExecStart=${WORKSPACE}/stat_server -c ${WORKSPACE}/config.toml
ExecReload=/bin/kill -HUP $MAINPID
ExecReload=/bin/kill -HUP \$MAINPID
Restart=on-failure
[Install]