소스 검색

Fix for part one of GitHub issue #118

Adam Ierymenko 11 년 전
부모
커밋
c7c545bf6c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ext/installfiles/linux/init.d/zerotier-one

+ 1 - 1
ext/installfiles/linux/init.d/zerotier-one

@@ -47,7 +47,7 @@ fi
 
 running=0
 if [ "$pid" -gt 0 ]; then
-	if [ -n "`ls -l /proc/$pid/exe | grep -F zerotier-one`" ]; then
+	if diff "/proc/$pid/exe" "$zthome/zerotier-one" >>/dev/null 2>&1; then
 		running=1
 	fi
 fi