[Unit]
Description=SREBOT Discord Bot for War Thunder
After=network.target
Wants=network.target

[Service]
Type=simple
User=sre
Group=sre
WorkingDirectory=/home/sre/SREBOT/BOT
ExecStart=/home/sre/SREBOT/BOT/venv/bin/python bot_runner.py
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=srebot

# Environment
Environment=PYTHONUNBUFFERED=1
Environment=STORAGE_VOL_PATH=/mnt/HC_Volume_105581488/STORAGE

# Security
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=false
ReadWritePaths=/home/sre/SREBOT /mnt/HC_Volume_105581488

[Install]
WantedBy=multi-user.target
