diff options
author | Tomas Krizek <tomas.krizek@nic.cz> | 2019-12-16 14:15:09 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2020-01-07 14:33:20 +0100 |
commit | 7a89c07d98dd7e1e2c831bcb4cb9191dec884381 (patch) | |
tree | bc6c234b8ea417ebd334bf56656fbf32c32f6ea3 /systemd | |
parent | Merge branch 'https_client_improvemens' into 'master' (diff) | |
download | knot-resolver-7a89c07d98dd7e1e2c831bcb4cb9191dec884381.tar.xz knot-resolver-7a89c07d98dd7e1e2c831bcb4cb9191dec884381.zip |
daemon/main: decrease suggested nofile hard limit to 512k
512k (or more) seems to be hard limit valued used by multiple distros
(fedora, arch, ubuntu, debian).
Closes #476
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/kresd@.service.in | 2 | ||||
-rw-r--r-- | systemd/nosocket/kresd@.service.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/systemd/kresd@.service.in b/systemd/kresd@.service.in index 0e7e8620..b6dcf29d 100644 --- a/systemd/kresd@.service.in +++ b/systemd/kresd@.service.in @@ -17,7 +17,7 @@ Group=@group@ TimeoutStopSec=10s WatchdogSec=10s Restart=on-abnormal -LimitNOFILE=1048576 +LimitNOFILE=524288 Sockets=kresd.socket Sockets=kresd-tls.socket Sockets=kresd-control@%i.socket diff --git a/systemd/nosocket/kresd@.service.in b/systemd/nosocket/kresd@.service.in index f6e36900..3e846b7c 100644 --- a/systemd/nosocket/kresd@.service.in +++ b/systemd/nosocket/kresd@.service.in @@ -19,7 +19,7 @@ AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SETPCAP TimeoutStopSec=10s WatchdogSec=10s Restart=on-abnormal -LimitNOFILE=1048576 +LimitNOFILE=524288 [Install] WantedBy=kresd.target |