[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
