update nohang.service

This commit is contained in:
Alexey Avramov 2019-10-01 07:36:24 +09:00
parent 422702fa8d
commit 4601b93242

View File

@ -5,10 +5,19 @@ Documentation=man:nohang(1) https://github.com/hakavlad/nohang
[Service]
ExecStart=:TARGET_BIN:/nohang --config :TARGET_CONF:/nohang/nohang.conf
Restart=always
RestartSec=0
KillMode=mixed
OOMPolicy=continue
Nice=-15
CPUSchedulingResetOnFork=true
OOMScoreAdjust=-10
RestrictRealtime=yes
RestrictSUIDSGID=yes
MemoryDenyWriteExecute=yes
SystemCallFilter=~@mount
ProtectSystem=full
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
[Install]
WantedBy=multi-user.target