nohang/nohang.service.in
Alexey Avramov 602150a30f fix syntax
2019-08-31 22:35:23 +09:00

16 lines
347 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
Restart=always
KillMode=mixed
OOMPolicy=continue
Nice=-15
CPUSchedulingResetOnFork=true
MemoryMin=50%
[Install]
WantedBy=multi-user.target