initial-import: 2026-04-11 21:18:55
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user