nohang/nohang.service.in
Alexey Avramov cfe68fcca5 fix Makefile
2019-07-23 22:58:13 +09:00

17 lines
360 B
SYSTEMD

[Unit]
Description=Highly configurable OOM prevention daemon
Documentation=man:nohang(1) https://github.com/hakavlad/nohang
[Service]
ExecStart=:TARGET_BIN:/nohang --config :TARGET_CONF:/nohang/nohang.conf
Slice=nohang.slice
Restart=always
KillMode=mixed
MemoryMax=100M
TasksMax=50
Nice=-15
CPUSchedulingResetOnFork=true
[Install]
WantedBy=multi-user.target