fusen-render/main/start.sh

19 lines
292 B
Bash
Raw Normal View History

2023-08-16 03:42:49 +00:00
#!/bin/bash
bash stop.sh
2023-09-08 03:58:57 +00:00
sleep 1s
2023-08-16 03:42:49 +00:00
for env in a b c; do
# 启动screen
screen_name="screen_$env"
screen -dmS $screen_name
# 构造日志名
log="log_$env.log"
# 使用go run 重定向日志
2023-08-16 03:47:35 +00:00
screen -S $screen_name -X stuff "go run main.go -etc $env >> $log 2>&1\n"
2023-08-16 03:42:49 +00:00
done