[Unit]
Description=Tactical Shooter — dedicated game server
After=network.target

[Service]
Type=simple
WorkingDirectory=/home/oplabs/tactical-shooter
ExecStart=/home/oplabs/.local/bin/godot --headless --scene res://scenes/headless_server.tscn -- --port 34197 --rcon-password changeme
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal
Environment=SERVER_PORT=34197
Environment=RCON_PORT=28960

[Install]
WantedBy=multi-user.target
