From e9031a6d44dd63d2a41ce7aef67c37366ea76c26 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Sun, 31 May 2020 06:44:58 +0900 Subject: [PATCH] update units --- systemd/nohang-desktop.service.in | 8 ++++++-- systemd/nohang.service.in | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/systemd/nohang-desktop.service.in b/systemd/nohang-desktop.service.in index 4e88fad..cd856cf 100644 --- a/systemd/nohang-desktop.service.in +++ b/systemd/nohang-desktop.service.in @@ -1,6 +1,6 @@ [Unit] Description=Sophisticated low memory handler -Documentation=man:nohang(1) https://github.com/hakavlad/nohang +Documentation=man:nohang(8) https://github.com/hakavlad/nohang Conflicts=nohang.service After=system.slice @@ -41,7 +41,11 @@ CapabilityBoundingSet=CAP_KILL CAP_IPC_LOCK CAP_SYS_PTRACE CAP_DAC_READ_SEARCH C # `PrivateNetwork=true` breaks GUI notifications on oldstable distros (Debian 8, CentOS 7, Linux Mint 18) # On modern distros you can set PrivateNetwork=true for security reasons -PrivateNetwork=false +#PrivateNetwork=true + +# Set realtime CPU scheduling policy if you want +#CPUSchedulingPolicy=rr +#CPUSchedulingPriority=1 [Install] WantedBy=multi-user.target diff --git a/systemd/nohang.service.in b/systemd/nohang.service.in index 7cd33a8..f43f871 100644 --- a/systemd/nohang.service.in +++ b/systemd/nohang.service.in @@ -1,6 +1,6 @@ [Unit] Description=Sophisticated low memory handler -Documentation=man:nohang(1) https://github.com/hakavlad/nohang +Documentation=man:nohang(8) https://github.com/hakavlad/nohang Conflicts=nohang-desktop.service After=system.slice @@ -41,7 +41,11 @@ CapabilityBoundingSet=CAP_KILL CAP_IPC_LOCK CAP_SYS_PTRACE CAP_DAC_READ_SEARCH C # `PrivateNetwork=true` breaks GUI notifications on oldstable distros (Debian 8, CentOS 7, Linux Mint 18) # On modern distros you can set PrivateNetwork=true for security reasons -PrivateNetwork=false +#PrivateNetwork=true + +# Set realtime CPU scheduling policy if you want +#CPUSchedulingPolicy=rr +#CPUSchedulingPriority=1 [Install] WantedBy=multi-user.target