[Unit] Description=sower client service Documentation=https://github.com/sower-proxy/sower After=network-online.target Wants=network-online.target [Service] Type=simple WorkingDirectory=/etc/sower # Keep the soft heap limit well above the ~105MB live rule heap: a limit at # that level pins the GC goal to the live heap and burns CPU on every # allocation. Matches the binary default and is declared here so a deployment # can tune it without rebuilding (0 disables the soft limit). Environment=SOWER_MEMORY_LIMIT_MB=512 ExecStart=/usr/local/bin/sower -c /etc/sower/sower.toml # The system resolver may point at this service, so it must come back fast. Restart=always RestartSec=3 LimitNOFILE=65535 [Install] WantedBy=multi-user.target