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

13 lines
328 B
Plaintext
Executable File

#!/bin/execlineb -P
s6-envdir -I /etc/s6/env/sshd.1
importas -D /etc/ssh/sshd_config SSHDCFG SSHDCFG
s6-envdir -i /etc/s6/env/path
emptyenv -p
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
/usr/sbin/sshd -D -e -f $SSHDCFG