mirror of
https://github.com/chatmail/relay.git
synced 2026-05-22 05:48:03 +00:00
cmdeploy: add config (, )
This commit is contained in:
@@ -116,6 +116,7 @@ def _configure_dovecot(config: Config, debug: bool = False) -> (bool, bool):
|
|||||||
|
|
||||||
# as per https://doc.dovecot.org/2.3/configuration_manual/os/
|
# as per https://doc.dovecot.org/2.3/configuration_manual/os/
|
||||||
# it is recommended to set the following inotify limits
|
# it is recommended to set the following inotify limits
|
||||||
|
if config.change_kernel_settings:
|
||||||
for name in ("max_user_instances", "max_user_watches"):
|
for name in ("max_user_instances", "max_user_watches"):
|
||||||
key = f"fs.inotify.{name}"
|
key = f"fs.inotify.{name}"
|
||||||
if host.get_fact(Sysctl)[key] > 65535:
|
if host.get_fact(Sysctl)[key] > 65535:
|
||||||
|
|||||||
Reference in New Issue
Block a user