fix interaction
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ _status() {
|
|||||||
log_cli " Main PID: $pid (zerotier-one)"
|
log_cli " Main PID: $pid (zerotier-one)"
|
||||||
else
|
else
|
||||||
pid_=`cat $zerotier_root/home/zerotier-one.pid`
|
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 " Active: inactive (dead)"
|
||||||
log_cli " Main PID: $pid_ (code=exited)"
|
log_cli " Main PID: $pid_ (code=exited)"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ if [[ "$1" ]]; then
|
|||||||
"start") run $1;;
|
"start") run $1;;
|
||||||
"stop") run $1;;
|
"stop") run $1;;
|
||||||
"restart") run $1;;
|
"restart") run $1;;
|
||||||
"status")) run $1;;
|
"status") run $1;;
|
||||||
*)
|
*)
|
||||||
echo "unknown command $1";;
|
echo "unknown command $1";;
|
||||||
esac
|
esac
|
||||||
@@ -43,6 +43,7 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 10
|
sleep 20 &
|
||||||
|
wait $!
|
||||||
echo "time out"
|
echo "time out"
|
||||||
exit 1
|
exit 1
|
||||||
Reference in New Issue
Block a user