Skip to content

Commit

Permalink
Minor repair. ref: #100
Browse files Browse the repository at this point in the history
  • Loading branch information
loyess committed May 28, 2022
1 parent 2b35743 commit e03c31d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions service/shadowsocks-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ get_config_args(){
fi

NameServer=$(cat ${JsonFilePath} | jq -r .nameserver)
[ -z "$NameServer" ] && echo -e "Configuration option 'nameserver' acquisition failed" && exit 1
}

do_status() {
Expand All @@ -108,7 +107,11 @@ do_start() {
fi
ulimit -n 51200
get_config_args $CONF
nohup $DAEMON -c $CONF --dns $NameServer -vvv > $LOG 2>&1 &
if [ -z "$NameServer" ]; then
nohup $DAEMON -c $CONF -vvv > $LOG 2>&1 &
else
nohup $DAEMON -c $CONF --dns $NameServer -vvv > $LOG 2>&1 &
fi
check_pid
echo $get_pid > $PID_FILE
if check_running; then
Expand Down

0 comments on commit e03c31d

Please sign in to comment.