Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyo authored Oct 29, 2018
1 parent a2c93ab commit cd0d7e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions service/mtproxy_go_centos
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
### END INIT INFO

NAME="MTProxy"
NAME_BIN="./mtp "
NAME_BIN="./mtg "
FILE="/usr/local/mtproxy-go"
CONF="/usr/local/mtproxy-go/mtproxy.conf"
LOG="/usr/local/mtproxy-go/mtproxy.log"
Expand Down Expand Up @@ -56,7 +56,7 @@ do_start(){
cd ${FILE}
echo -e "${Info} $NAME 启动中..."
ulimit -n 51200
eval nohup ./mtp -b 0.0.0.0 -p ${port} $(echo ${nat_ipv4}) $(echo ${nat_ipv6}) -q 65436 $(echo ${secure}) "${password}" "${tag}" >> "${LOG}" 2>&1 &
eval nohup ./mtg -b 0.0.0.0 -p ${port} $(echo ${nat_ipv4}) $(echo ${nat_ipv6}) -q 65436 $(echo ${secure}) "${password}" "${tag}" >> "${LOG}" 2>&1 &
sleep 2s
check_running
if [[ $? -eq 0 ]]; then
Expand Down
4 changes: 2 additions & 2 deletions service/mtproxy_go_debian
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
### END INIT INFO

NAME="MTProxy"
NAME_BIN="./mtp "
NAME_BIN="./mtg "
FILE="/usr/local/mtproxy-go"
CONF="/usr/local/mtproxy-go/mtproxy.conf"
LOG="/usr/local/mtproxy-go/mtproxy.log"
Expand Down Expand Up @@ -54,7 +54,7 @@ do_start(){
cd ${FILE}
echo -e "${Info} $NAME 启动中..."
ulimit -n 51200
eval nohup ./mtp -b 0.0.0.0 -p ${port} $(echo ${nat_ipv4}) $(echo ${nat_ipv6}) -q 65436 $(echo ${secure}) "${password}" "${tag}" >> "${LOG}" 2>&1 &
eval nohup ./mtg -b 0.0.0.0 -p ${port} $(echo ${nat_ipv4}) $(echo ${nat_ipv6}) -q 65436 $(echo ${secure}) "${password}" "${tag}" >> "${LOG}" 2>&1 &
sleep 2s
check_running
if [[ $? -eq 0 ]]; then
Expand Down

0 comments on commit cd0d7e0

Please sign in to comment.