expose the error

This commit is contained in:
neil 2016-04-12 23:47:09 +08:00
parent dca09dedac
commit 770dc4b230

4
le.sh
View File

@ -660,12 +660,12 @@ _stopserver(){
if [[ "$(ps | grep "$pid")" ]] ; then if [[ "$(ps | grep "$pid")" ]] ; then
_debug "Found proc process, kill it." _debug "Found proc process, kill it."
kill -s 9 $pid > /dev/null 2>&1 kill -s 9 $pid > /dev/null
fi fi
for ncid in $(ps | grep nc | cut -d " " -f 1) ; do for ncid in $(ps | grep nc | cut -d " " -f 1) ; do
_debug "kill $ncid" _debug "kill $ncid"
kill -s 9 $ncid > /dev/null 2>&1 kill -s 9 $ncid > /dev/null
done done
_get "http://localhost:$Le_HTTPPort" >/dev/null 2>$1 _get "http://localhost:$Le_HTTPPort" >/dev/null 2>$1