nohang/nohang.service.in
Alexey Avramov 009df6f4b8 fix
2019-08-31 22:37:00 +09:00

15 lines
333 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
[Install]
WantedBy=multi-user.target