update init script
This commit is contained in:
parent
ababab97cd
commit
abb008cdbd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user