mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-16 16:29:23 +01:00
systemd/limnoria.service: place limit on memory, commented cpuquote
This commit is contained in:
parent
024fd40e87
commit
5297140958
@ -19,6 +19,11 @@ ExecReload=/bin/kill -HUP $MAINPID
|
|||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
User=BOTUSER
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user