nohang/nohang.service
2019-01-11 16:30:47 +09:00

24 lines
468 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
Restart=always
RestartSec=1
IOSchedulingClass=1
IOSchedulingPriority=0
Nice=-20
CPUSchedulingPolicy=rr
CPUSchedulingPriority=99
CPUSchedulingResetOnFork=true
ProtectSystem=strict
MemoryMax=100M
TasksMax=100
OOMScoreAdjust=-20
Slice=nohang.slice
[Install]
WantedBy=multi-user.target