Linux installer: remove old init.d files, fix for init.d startup/shutdown script.

This commit is contained in:
Adam Ierymenko 2013-12-16 16:40:03 -08:00
commit b54f998a85
3 changed files with 28 additions and 6 deletions

View file

@ -47,10 +47,8 @@ fi
running=0
if [ "$pid" -gt 0 ]; then
if [ "`readlink -nf /proc/$pid/exe`" = "$zthome/zerotier-one" ]; then
if [ -n "`ls -l /proc/$pid/exe | grep -F zerotier-one`" ]; then
running=1
else
rm -f "$zthome/zerotier-one.pid"
fi
fi