fix interaction
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user