systemd/limnoria.service: place limit on memory, commented cpuquote

This commit is contained in:
Aminda Suomalainen 2023-10-01 10:47:06 +03:00
parent 024fd40e87
commit 5297140958
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@ ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=5s
User=BOTUSER
# Limit memory to 300 Mb after which throthhle use. Useful with pypy.
# https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
MemoryHigh=300M
# Also attempt to restrict CPU use to 9 %
#CPUQuota=9%
[Install]
WantedBy=multi-user.target