Inhaltsverzeichnis
Runbook: Server pokrenuti/zaustaviti
Trajanje: ~5 minuta
Uloga: Gateway-Operator
Preduvjet: Administratorska prava
Tijek rada
flowchart TD
A[Start] --> B{Vec radi?}
B -->|Da| C[Zaustaviti]
B -->|Ne| D[Pokrenuti]
C --> D
D --> E[Health Check]
E --> F{Uspjesno?}
F -->|Da| G[Gotovo]
F -->|Ne| H[Logove provjeriti]
H --> D
style G fill:#e8f5e9
style H fill:#ffebee
1. Status provjeriti
Windows:
# Proces traziti Get-Process -Name "WvdS.WebAPI.Data.Gateway.Api" -ErrorAction SilentlyContinue # Ili preko porta netstat -ano | findstr :5000
Linux:
# Proces traziti pgrep -f "WvdS.WebAPI.Data.Gateway.Api" # Ili preko porta ss -tlnp | grep 5000
2. Server pokrenuti
Windows (Konzola):
cd %GATEWAY_ROOT% .\WvdS.WebAPI.Data.Gateway.Api.exe
Windows (Pozadina):
Start-Process -FilePath "%GATEWAY_ROOT%\WvdS.WebAPI.Data.Gateway.Api.exe" -WindowStyle Hidden
Linux:
cd /opt/gateway ./WvdS.WebAPI.Data.Gateway.Api &
3. Server zaustaviti
Windows:
# Graceful shutdown Stop-Process -Name "WvdS.WebAPI.Data.Gateway.Api" -Force
Linux:
# Graceful shutdown pkill -SIGTERM -f "WvdS.WebAPI.Data.Gateway.Api" # Force kill (samo ako je potrebno) pkill -9 -f "WvdS.WebAPI.Data.Gateway.Api"
4. Health Check
# Dostupnost provjeriti curl -s http://localhost:5000/health # Ocekivani odgovor: "Healthy"
5. Kontrolna lista
| # | Provjera | Da/Ne |
| — | ———– | — |
| 1 | Proces radi | - |
| 2 | Port 5000 otvoren | - |
| 3 | Health Check „Healthy“ | - |
| 4 | Nema gresaka u konzoli | - |
Rjesavanje problema
| Problem | Uzrok | Rjesenje |
| ——— | ——— | ——– |
Port vec u upotrebi | Stari proces radi | Proces zavrsiti, zatim pokrenuti |
Access denied | Nedostaju prava | Kao Administrator pokrenuti |
Config error | appsettings.json nevalidan | JSON sintaksu provjeriti |
Database connection failed | DSN pogresno konfigurirana | Connection String provjeriti |
Povezani runbookovi
- Health Check - Detaljna provjera statusa
- Provjera logova - Analiza gresaka
- Windows-Dienst - Kao Service pokretati
« <- Svakodnevni rad | -> DSN upravljanje »
Wolfgang van der Stille @ EMSR DATA d.o.o. - Data Gateway Professional
Zuletzt geändert: 29.01.2026. u 23:43