diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-17 17:13:21 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-17 17:13:21 +0200 |
| commit | 59ffcfb8820533e8b8ee8fa86a7d50b7e11e23ef (patch) | |
| tree | 99561a3d0b2e51030121eca129a63c47fef1ddcf /frontends/Rexfile | |
| parent | 56b7be608fdbbc4631b34d12e5c1f390eb69d129 (diff) | |
fix
Diffstat (limited to 'frontends/Rexfile')
| -rw-r--r-- | frontends/Rexfile | 10 |
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( |
