Update systemd units

This commit is contained in:
Alexey Avramov 2020-07-02 23:54:48 +09:00
parent 22ac9833bc
commit c3c0b510a8
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Description=Sophisticated low memory handler
Documentation=man:nohang(8) https://github.com/hakavlad/nohang
Conflicts=nohang.service
After=system.slice
After=sysinit.target
[Service]
ExecStart=:TARGET_SBINDIR:/nohang --monitor --config :TARGET_SYSCONFDIR:/nohang/nohang-desktop.conf
@ -26,6 +26,7 @@ ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
PrivateDevices=true
PrivateTmp=true
MemoryDenyWriteExecute=yes
RestrictNamespaces=yes
LockPersonality=yes

View File

@ -2,7 +2,7 @@
Description=Sophisticated low memory handler
Documentation=man:nohang(8) https://github.com/hakavlad/nohang
Conflicts=nohang-desktop.service
After=system.slice
After=sysinit.target
[Service]
ExecStart=:TARGET_SBINDIR:/nohang --monitor --config :TARGET_SYSCONFDIR:/nohang/nohang.conf
@ -26,6 +26,7 @@ ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
PrivateDevices=true
PrivateTmp=true
MemoryDenyWriteExecute=yes
RestrictNamespaces=yes
LockPersonality=yes