19 lines
455 B
Desktop File
19 lines
455 B
Desktop File
# /etc/systemd/system/lessie-email.service
|
|
|
|
[Unit]
|
|
Description=Lessie Email Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/data/webapps/lessie-email
|
|
# 使用虚拟环境中的完整路径
|
|
Environment="ENV=production"
|
|
ExecStart=/data/webapps/lessie-email/ .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8031 --log-config logging_config.json
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |