Browse Source

Fix for init.d/zerotier-one (again)

Adam Ierymenko 10 years ago
parent
commit
d8d4aace42
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ext/installfiles/linux/init.d/zerotier-one

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

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