update init script

This commit is contained in:
Teddysun 2016-09-16 11:11:51 +09:00 committed by GitHub
parent ababab97cd
commit abb008cdbd

View File

@ -23,7 +23,7 @@ CONF=/etc/shadowsocks.json
check_running(){
PID=`ps -ef | grep -v grep | grep -i "${BIN}" | awk '{print $2}'`
if [ -n $PID ]; then
if [ ! -z $PID ]; then
return 0
else
return 1