sadly zerotier make-linux.mk does not support armv7; update service.sh

This commit is contained in:
eventlOwOp
2024-05-11 14:03:58 +08:00
parent c10a31216f
commit d105f81a9d
2 changed files with 26 additions and 26 deletions
+6 -6
View File
@@ -13,16 +13,16 @@ log() {
echo "[$t][$$][L] $1" >> $daemon_log
}
_stop() {
if [ $pid -eq -1 ]; then
log "zerotier-one not running"
pid=$(pidof zerotier-one)
if [ $? -ne 0 ]; then
log "zerotier-one not running"
return 1
fi
kill -9 $pid
ret=$?
pid=-1
echo $pid > ./run/pid
rm -rf ./run/pid
if [ $ret -eq 0 ]; then
log "stopped zerotier-one"
@@ -73,7 +73,7 @@ __start() {
echo $pid > ./run/pid
}
_start() {
if [ $pid -ne -1 ]; then
if pid=$(pidof zerotier-one); then
log "zerotier-one already running"
else
__start