nohang/nohang.service
Alexey Avramov 98955d192a fix .service
2019-06-22 12:54:35 +09:00

22 lines
461 B
Desktop File

[Unit]
Description=Highly configurable OOM prevention daemon
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
KillMode=mixed
MemoryMax=50M
TasksMax=50
Nice=-20
IOSchedulingClass=1
IOSchedulingPriority=0
CPUSchedulingPolicy=fifo
CPUSchedulingPriority=99
CPUSchedulingResetOnFork=true
[Install]
WantedBy=multi-user.target