nohang/nohang.service
Alexey Avramov db0eea2213 fix logging
2019-03-18 19:44:54 +09:00

22 lines
469 B
Desktop File

[Unit]
Description=Highly configurable out of memory preventer
After=sysinit.target
Documentation=man:nohang(1) https://github.com/hakavlad/nohang
[Service]
ExecStart=/usr/sbin/nohang --config /etc/nohang/nohang.conf
Slice=nohang.slice
Restart=always
MemoryMax=100M
TasksMax=100
OOMScoreAdjust=-10
Nice=-20
IOSchedulingClass=1
IOSchedulingPriority=0
CPUSchedulingPolicy=fifo
CPUSchedulingPriority=99
CPUSchedulingResetOnFork=true
[Install]
WantedBy=multi-user.target