\$MAINPID
parent
458eb74c94
commit
6d65045ebe
|
@ -38,7 +38,7 @@ Environment="RUST_BACKTRACE=1"
|
||||||
WorkingDirectory=${WORKSPACE}
|
WorkingDirectory=${WORKSPACE}
|
||||||
# EnvironmentFile=~/myserve/serverstatus/.env
|
# EnvironmentFile=~/myserve/serverstatus/.env
|
||||||
ExecStart=${WORKSPACE}/stat_client -a "${server_address}" -u ${uid} -p ${passwd}
|
ExecStart=${WORKSPACE}/stat_client -a "${server_address}" -u ${uid} -p ${passwd}
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP \$MAINPID
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -75,7 +75,7 @@ Group=${user_name}
|
||||||
Environment="RUST_BACKTRACE=1"
|
Environment="RUST_BACKTRACE=1"
|
||||||
WorkingDirectory=${WORKSPACE}
|
WorkingDirectory=${WORKSPACE}
|
||||||
ExecStart=${WORKSPACE}/stat_server -c ${WORKSPACE}/config.toml
|
ExecStart=${WORKSPACE}/stat_server -c ${WORKSPACE}/config.toml
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP \$MAINPID
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in New Issue