initial-import: 2026-04-11 21:18:55

This commit is contained in:
cfdaily
2026-04-11 21:18:55 +08:00
commit 5e6b2d73eb
264 changed files with 117047 additions and 0 deletions
@@ -0,0 +1,15 @@
[Unit]
Description=sanguo_vnpy 交易进程 - {{username}}
After=network.target
[Service]
Type=simple
User={{username}}
WorkingDirectory={{base_dir}}/users/{{username}}
ExecStart=/usr/bin/python3 {{base_dir}}/users/{{username}}/start_trade.py
Restart=always
RestartSec=10
Environment=PYTHONUNBUFFERED=1
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,15 @@
[Unit]
Description=sanguo_vnpy Web进程 - {{username}}
After=network.target sanguo-trade-{{username}}.service
[Service]
Type=simple
User={{username}}
WorkingDirectory={{base_dir}}/users/{{username}}
ExecStart=/usr/bin/python3 {{base_dir}}/users/{{username}}/start_web.py
Restart=always
RestartSec=10
Environment=PYTHONUNBUFFERED=1
[Install]
WantedBy=multi-user.target