Skip to content

Commit

Permalink
Should solve server master to backup failover (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan168 authored Mar 9, 2024
2 parents cc83936 + 30ce34c commit d2a3347
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions omr-tracker/files/bin/omr-tracker-server
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,11 @@ _check_master() {
add_list openvpn.omr.remote=$ip
commit openvpn
set openmptcprouter.${name}.current='1'
set openmptcprouter.${name}.get_config='1'
commit openmptcprouter
EOF
/etc/init.d/openmptcprouter-vps get_openvpn_key $name >/dev/null 2>/dev/null
/etc/init.d/openmptcprouter-vps restart >/dev/null 2>/dev/null
/etc/init.d/v2ray restart >/dev/null 2>/dev/null
/etc/init.d/xray restart >/dev/null 2>/dev/null
/etc/init.d/glorytun restart >/dev/null 2>/dev/null
Expand Down Expand Up @@ -317,9 +319,11 @@ _check_backup() {
add_list openvpn.omr.remote=$ip
commit openvpn
set openmptcprouter.${name}.current='1'
set openmptcprouter.${name}.get_config='1'
commit openmptcprouter
EOF
/etc/init.d/openmptcprouter-vps get_openvpn_key $name >/dev/null 2>/dev/null
/etc/init.d/openmptcprouter-vps restart >/dev/null 2>/dev/null
/etc/init.d/v2ray restart >/dev/null 2>/dev/null
/etc/init.d/xray restart >/dev/null 2>/dev/null
/etc/init.d/glorytun restart >/dev/null 2>/dev/null
Expand Down

0 comments on commit d2a3347

Please sign in to comment.