summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
Diffstat (limited to 'frontends')
-rw-r--r--frontends/Rexfile10
1 files changed, 8 insertions, 2 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile
index 53b1036..c59bb58 100644
--- a/frontends/Rexfile
+++ b/frontends/Rexfile
@@ -291,8 +291,14 @@ task 'relayd',
append_if_no_such_line '/etc/rc.conf.local', 'relayd_flags=';
# Increase daemon login class file descriptor limits for relayd with many TLS certs
- run 'doas sed -i "s/:openfiles-max=1024:/:openfiles-max=4096:/; s/:openfiles-cur=1024:/:openfiles-cur=4096:/" /etc/login.conf';
- run 'doas rm -f /etc/login.conf.db && doas cap_mkdb /etc/login.conf';
+ file '/etc/login.conf.d/daemon',
+ source => './etc/login.conf.d/daemon',
+ owner => 'root',
+ group => 'wheel',
+ mode => '644',
+ on_change => sub {
+ run 'doas rm -f /etc/login.conf.db && doas cap_mkdb /etc/login.conf';
+ };
file '/etc/relayd.conf',
content => template(