Backend: add montana-mess.service

This commit is contained in:
efir369999 2026-05-05 17:17:09 +03:00
parent 73d1315a0c
commit abdeedbf81

View File

@ -0,0 +1,15 @@
[Unit]
Description=Montana Messenger Backend
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/mess
Environment="MESS_DB=/opt/mess/data.db"
ExecStart=/opt/mess/venv/bin/uvicorn messenger:app --host 127.0.0.1 --port 5051 --workers 1
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target