diff options
| author | Paul Buetow <paul@buetow.org> | 2026-07-10 00:23:17 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-07-10 00:23:17 +0300 |
| commit | b4a75783befa31d81e17aa3dc09af1e531d92856 (patch) | |
| tree | a087214a9360634f040d35245d2e11c24e73c32d /frontends/etc/dserver/dtail.json.tpl | |
| parent | 037fc22517361d3a9973cb8dc09040c378c2d913 (diff) | |
frontends: OpenBSD dserver — absolute CacheDir, persistent host key
The OpenBSD dserver template used relative CacheDir "cache" and
HostKeyFile "cache/ssh_host_key", which only worked because rc.d starts
the daemon via su -l _dserver (CWD = /var/run/dserver). Any start from
another directory broke public key lookup — same bug class dtail commit
fec2f9d fixed on the server side. Switch to absolute paths like the
FreeBSD/NetBSD templates.
OpenBSD /etc/rc wipes /var/run/* at boot, so move the SSH host key to
persistent /var/db/dserver/ssh_host_key (mirrors the NetBSD template) —
a regenerated host key would break clients' known_hosts. The rc.d
rc_pre now also creates /var/db/dserver and re-runs the key-cache
helper on every service start, so the volatile cache is repopulated
right after a reboot instead of waiting for the daily cron job.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'frontends/etc/dserver/dtail.json.tpl')
| -rw-r--r-- | frontends/etc/dserver/dtail.json.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/etc/dserver/dtail.json.tpl b/frontends/etc/dserver/dtail.json.tpl index 6b96fba..634fcca 100644 --- a/frontends/etc/dserver/dtail.json.tpl +++ b/frontends/etc/dserver/dtail.json.tpl @@ -90,7 +90,7 @@ }, "Server": { "SSHBindAddress": "0.0.0.0", - "HostKeyFile": "cache/ssh_host_key", + "HostKeyFile": "/var/db/dserver/ssh_host_key", "HostKeyBits": 2048, "MapreduceLogFormat": "default", "MaxConcurrentCats": 2, @@ -120,7 +120,7 @@ "LogDir": "/var/log/dserver", "Logger": "Fout", "LogRotation": "Daily", - "CacheDir": "cache", + "CacheDir": "/var/run/dserver/cache", "SSHPort": 2222, "LogLevel": "Info" } |
