Files
sower/.github/sowerd.service
wweir 3c869cd32d fix(sowerd): give the service a soft heap ceiling on every install path
The 2026-10-12 OOM killed the host, not the service: sowerd had no memory
ceiling anywhere while the sower client has had SOWER_MEMORY_LIMIT_MB since
d0031e4. Put a GOMEMLIMIT on the unit the installer writes and on the
packaged unit, so a runaway heap degrades sowerd instead of OOM-killing the
machine it runs on. kr already carries the same value through a drop-in.
2026-10-12 17:58:08 +08:00

17 lines
436 B
Desktop File

[Unit]
Description=sowerd server service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/sowerd
Environment="FAKE_SITE=127.0.0.1:8080"
Environment="PASSWORD=I_am_Passw0rd"
# Soft heap ceiling: a runaway heap degrades the service instead of
# OOM-killing the host (docs/security.md, Connection Resource Bounds).
Environment="GOMEMLIMIT=512MiB"
Restart=on-failure
RestartSec=1min
[Install]
WantedBy=multi-user.target