ports/main/nnd-s6-services/rc/net/sshd.1/run

14 lines
332 B
Plaintext
Executable File

#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
importas -i PATH PATH
emptyenv
export PATH $PATH
define SSHDCFG /etc/ssh/sshd_config
fdmove -c 2 1
# NOTE: SSHD forks itself and requires the full path
# - i don't think this is really a concern that should be forced onto users
exec /usr/sbin/sshd -D -e -f ${SSHDCFG}