diff --git a/shadowsocks-go b/shadowsocks-go index ab573ba..3d27c65 100644 --- a/shadowsocks-go +++ b/shadowsocks-go @@ -70,7 +70,7 @@ do_start() { fi echo "starting shadowsocks-go" # sudo will set the group to the primary group of $USER - $BIN -c $CONFIG_FILE > /dev/null 2>&1 & + $BIN -c $CONFIG_FILE > /dev/null & PID=$! echo $PID > $PID_FILE sleep 0.3 diff --git a/shadowsocks-go-debian b/shadowsocks-go-debian index 2fbaf9f..5c3a0a0 100644 --- a/shadowsocks-go-debian +++ b/shadowsocks-go-debian @@ -68,7 +68,7 @@ do_start() { fi echo "starting $NAME" # sudo will set the group to the primary group of $USER - $BIN -c $CONFIG_FILE > /dev/null 2>&1 & + $BIN -c $CONFIG_FILE > /dev/null & PID=$! echo $PID > $PID_FILE sleep 0.3