修改启动脚本
This commit is contained in:
parent
4f2a53925e
commit
8d9d62cf4f
13
mock.sh
13
mock.sh
@ -27,17 +27,8 @@ start() {
|
||||
if pgrep -f "$service" > /dev/null; then
|
||||
echo " $service 已在运行"
|
||||
else
|
||||
case "$service" in
|
||||
"mock_airport.py")
|
||||
nohup python3 "$service" > "../$LOGS_DIR/airport.log" 2>&1 &
|
||||
;;
|
||||
"mock_traffic_light.py")
|
||||
nohup python3 "$service" > "../$LOGS_DIR/traffic_light.log" 2>&1 &
|
||||
;;
|
||||
"mock_unmanned_vehicle.py")
|
||||
nohup python3 "$service" > "../$LOGS_DIR/unmanned_vehicle.log" 2>&1 &
|
||||
;;
|
||||
esac
|
||||
# 各个mock服务已经有自己的日志管理,不需要重定向输出
|
||||
nohup python3 "$service" > /dev/null 2>&1 &
|
||||
echo " $service 已启动"
|
||||
fi
|
||||
done
|
||||
|
||||
Loading…
Reference in New Issue
Block a user