From ed6b129e8c3609b48247c7f1e3197eab0ebef662 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Sun, 8 Dec 2019 21:10:22 +0900 Subject: [PATCH] Set PrivateNetwork=true --- nohang/nohang-desktop.service.in | 6 ++++-- nohang/nohang.service.in | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/nohang/nohang-desktop.service.in b/nohang/nohang-desktop.service.in index da2640f..1bad47c 100644 --- a/nohang/nohang-desktop.service.in +++ b/nohang/nohang-desktop.service.in @@ -6,14 +6,16 @@ After=system.slice [Service] ExecStart=:TARGET_BIN:/nohang --config :TARGET_CONF:/nohang/nohang-desktop.conf +SyslogIdentifier=nohang-desktop Restart=always RestartSec=0 KillMode=mixed TasksMax=100 -Nice=-15 +Nice=-5 CPUSchedulingResetOnFork=true -OOMScoreAdjust=-10 +OOMScoreAdjust=-5 UMask=0027 +PrivateNetwork=true PrivateTmp=true RestrictRealtime=yes MemoryDenyWriteExecute=yes diff --git a/nohang/nohang.service.in b/nohang/nohang.service.in index 90f86f1..a2e6add 100644 --- a/nohang/nohang.service.in +++ b/nohang/nohang.service.in @@ -5,14 +5,16 @@ After=system.slice [Service] ExecStart=:TARGET_BIN:/nohang --config :TARGET_CONF:/nohang/nohang.conf +SyslogIdentifier=nohang Restart=always RestartSec=0 KillMode=mixed TasksMax=100 -Nice=-15 +Nice=-5 CPUSchedulingResetOnFork=true -OOMScoreAdjust=-10 +OOMScoreAdjust=-5 UMask=0027 +PrivateNetwork=true PrivateTmp=true RestrictRealtime=yes MemoryDenyWriteExecute=yes