Files
chan.py/web/chanlun-web.service
T
2025-06-10 01:16:09 +08:00

15 lines
401 B
Desktop File

[Unit]
Description=ChanLun Web Application
After=network.target
[Service]
User=<用户名>
Group=<用户组>
WorkingDirectory=/path/to/user_data/Chan/web
ExecStart=/usr/local/bin/gunicorn -w 4 -b 0.0.0.0:8123 app:app
Restart=on-failure
StandardOutput=file:/path/to/user_data/Chan/web/logs/output.log
StandardError=file:/path/to/user_data/Chan/web/logs/error.log
[Install]
WantedBy=multi-user.target