fix interaction

This commit is contained in:
eventlOwOp
2024-05-13 17:16:47 +08:00
parent b20a4e9ae9
commit 2687608fd8
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ _status() {
log_cli " Main PID: $pid (zerotier-one)"
else
pid_=`cat $zerotier_root/home/zerotier-one.pid`
log_cli "○ zerotier-one is stopped"
log_cli "○ zerotier-one.service - ZeroTier One - Global Area Networking"
log_cli " Active: inactive (dead)"
log_cli " Main PID: $pid_ (code=exited)"
fi
+3 -2
View File
@@ -34,7 +34,7 @@ if [[ "$1" ]]; then
"start") run $1;;
"stop") run $1;;
"restart") run $1;;
"status")) run $1;;
"status") run $1;;
*)
echo "unknown command $1";;
esac
@@ -43,6 +43,7 @@ else
exit 1
fi
sleep 10
sleep 20 &
wait $!
echo "time out"
exit 1