Feybreak Fix Guides // PalHeap Telemetry
Palworld REST API & RCON Graceful Player Drain Script
Never kill PalServer cold; a 15-line REST API or RCON drain script warns players, saves Level.sav, and closes cleanly before systemd restarts the unit.
Measured Feybreak UE5 & RSS Profile
Palworld dedicated servers include both RCON (port 25575) and an HTTP REST API (port 8212) secured by AdminPassword. Binding both to localhost (127.0.0.1) lets systemd ExecStop trigger /v1/api/announce, /v1/api/save, and /v1/api/shutdown reliably.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| REST API Endpoint | 127.0.0.1:8212/v1/api/* | Zero external RCON tool binary required |
| Pre-Restart Warning | 30 - 60 seconds | Gives players time to dismount flying Pals |
| Save Verification | HTTP 200 on /v1/api/save | Guarantees zero rollback across restarts |
Step-by-Step Triage & Config Remediation
- Enable RESTAPIEnabled=True: Set RESTAPIEnabled=True and a strong AdminPassword in PalWorldSettings.ini.
- Firewall port 8212 to localhost: Keep RESTAPIPort=8212 reachable only by local systemd scripts or trusted admin VPNs.
- Hook script into ExecStop: Call /v1/api/announce, sleep 30, call /v1/api/save, then /v1/api/shutdown.
#!/usr/bin/env bash
AUTH="admin:$PAL_ADMIN_PASS"
curl -s -u "$AUTH" -X POST http://127.0.0.1:8212/v1/api/announce -d '{"message":"Restarting in 30s for memory cleanup"}'
sleep 30
curl -s -u "$AUTH" -X POST http://127.0.0.1:8212/v1/api/save
curl -s -u "$AUTH" -X POST http://127.0.0.1:8212/v1/api/shutdown -d '{"waittime":5,"message":"Saving world"}'
Diagnostic FAQ
Is REST API better than RCON for systemd scripts?
Yes, REST API works with standard curl and JSON without compiling mcrcon, and supports clean save + shutdown endpoints.
What happens if a player stays logged in during /v1/api/shutdown?
PalServer saves all player inventories and disconnects them cleanly after waittime expires.