Files
czech-fool/czech-fool.service
T
2025-11-01 15:55:11 +03:00

24 lines
496 B
Desktop File

[Unit]
Description=Card Game Server
After=network.target postgresql.service
Wants=postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/czech-fool
ExecStart=/usr/bin/python3 /opt/czech-fool/server.py --clearrooms
Restart=always
RestartSec=10
# Переменные окружения (если нужны)
Environment="PYTHONUNBUFFERED=1"
# Логирование
StandardOutput=journal
StandardError=journal
SyslogIdentifier=card-game
[Install]
WantedBy=multi-user.target