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