mirror of
https://github.com/wweir/sower.git
synced 2026-10-20 00:15:34 +00:00
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.
17 lines
436 B
Desktop File
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 |