nohang/nohang.service
Alexey Avramov fbc76b3947 minor fixes
2019-01-11 15:15:34 +09:00

25 lines
484 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
MemorySwapMax=0
TasksMax=100
OOMScoreAdjust=-20
Slice=nohang.slice
[Install]
WantedBy=multi-user.target