隐藏在mac上启动时的终端
diff --git a/start.sh b/start.sh
index 85a6a3705b..84cfb607be 100755
--- a/start.sh
+++ b/start.sh
@@ -3,8 +3,30 @@
 SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 cd $SCRIPTPATH
 
-if hash python2 2>/dev/null; then
-    python2 launcher/start.py
+# launch xx-net service by ignore hungup signal
+function launchWithNoHungup() {
+	if hash python2 2>/dev/null; then
+	    nohup python2 launcher/start.py 2&> /dev/null &
+	else
+	    nohup python launcher/start.py 2&> /dev/null &
+	fi
+}
+
+# launch xx-net service by hungup signal
+function launchWithHungup() {
+	if hash python2 2>/dev/null; then
+	    python2 launcher/start.py
+	else
+	    python launcher/start.py
+	fi
+}
+
+# get operating system name
+os_name=`uname -s`
+
+# Darwin for os x
+if [ $os_name = 'Darwin' ];then
+	launchWithNoHungup
 else
-    python launcher/start.py
-fi
+	launchWithHungup
+fi
\ No newline at end of file

Improve #2761 when launch XX-Net without Terminal
