UPS & Engine Tuning
Headless Linux systemd Unit, THP & pause_when_empty Setup
Hardened Linux systemd launch flags, Transparent Hugepages notes, and pause_when_empty configuration for zero-maintenance VPS uptime.
Zero Idle Burn · Clean SIGINT Save · Deterministic Restarts
Graceful Shutdown Save Integrity
Headless Factorio writes its exit save upon receiving SIGINT. Configuring TimeoutStopSec=90 in systemd guarantees large 300 MB Space Age worlds finish serializing before a host reboot.
Always Pause When Empty
In Space Age, leaving Gleba spoilage and Aquilo heat active with zero players online can deadlock biochambers overnight. Set pause_when_empty=true and auto_pause=true in server-settings.json.
Measured Thresholds & Server Configuration
| Linux Setting | Recommended Value | Reason |
|---|---|---|
| pause_when_empty | true | Protects Gleba/Aquilo & stops idle CPU use |
| TimeoutStopSec | 90s (SIGINT) | Lets Factorio finish final save before reboot |
| Swap / OOMScoreAdjust | 2 GB zram + -500 score | Prevents accidental sshd/factorio kill |