diff options
Diffstat (limited to 'frontends/etc')
| -rw-r--r-- | frontends/etc/dserver/dtail-netbsd.json.tpl | 2 | ||||
| -rw-r--r-- | frontends/etc/rc.d/dserver-netbsd.tpl | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/frontends/etc/dserver/dtail-netbsd.json.tpl b/frontends/etc/dserver/dtail-netbsd.json.tpl index cd99560..634fcca 100644 --- a/frontends/etc/dserver/dtail-netbsd.json.tpl +++ b/frontends/etc/dserver/dtail-netbsd.json.tpl @@ -90,7 +90,7 @@ }, "Server": { "SSHBindAddress": "0.0.0.0", - "HostKeyFile": "/var/run/dserver/cache/ssh_host_key", + "HostKeyFile": "/var/db/dserver/ssh_host_key", "HostKeyBits": 2048, "MapreduceLogFormat": "default", "MaxConcurrentCats": 2, diff --git a/frontends/etc/rc.d/dserver-netbsd.tpl b/frontends/etc/rc.d/dserver-netbsd.tpl index 7bd118c..31ac1f6 100644 --- a/frontends/etc/rc.d/dserver-netbsd.tpl +++ b/frontends/etc/rc.d/dserver-netbsd.tpl @@ -21,10 +21,13 @@ start_precmd="dserver_precmd" dserver_precmd() { # /var/run is volatile on NetBSD — recreate the runtime dirs and - # repopulate the SSH key cache on every service start. + # repopulate the SSH key cache on every service start. The SSH host + # key lives in persistent /var/db/dserver so it survives reboots + # (a regenerated host key would break clients' known_hosts). install -d -o dserver -m 0755 /var/log/dserver install -d -o dserver -m 0755 /var/run/dserver install -d -o dserver -m 0755 /var/run/dserver/cache + install -d -o dserver -m 0700 /var/db/dserver if [ -x /usr/local/bin/dserver-update-key-cache.sh ]; then /usr/local/bin/dserver-update-key-cache.sh fi |
