Update server2.py
Browse files- server2.py +2 -2
server2.py
CHANGED
|
@@ -497,8 +497,8 @@ def monitor_port():
|
|
| 497 |
print(f"端口 8000 未被使用")
|
| 498 |
# 启动脚本并在后台运行
|
| 499 |
try:
|
| 500 |
-
process = subprocess.Popen('yes | sh /
|
| 501 |
-
print("已尝试启动 /
|
| 502 |
time.sleep(20)
|
| 503 |
except Exception as e: # 捕获所有异常
|
| 504 |
print(f"命令失败: {e}")
|
|
|
|
| 497 |
print(f"端口 8000 未被使用")
|
| 498 |
# 启动脚本并在后台运行
|
| 499 |
try:
|
| 500 |
+
process = subprocess.Popen(f'yes | sh {data_folder }/start.sh', shell=True)
|
| 501 |
+
print(f"已尝试启动 {data_folder }/start.sh")
|
| 502 |
time.sleep(20)
|
| 503 |
except Exception as e: # 捕获所有异常
|
| 504 |
print(f"命令失败: {e}")
|