2026-01-27同步
This commit is contained in:
19
jenkins/流水线配置/systemd守护进程/lessie-email.service
Normal file
19
jenkins/流水线配置/systemd守护进程/lessie-email.service
Normal file
@@ -0,0 +1,19 @@
|
||||
# /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
|
||||
Reference in New Issue
Block a user