886c4b93ea
/etc/init.d/sshd now sources /sbin/sshd-functions.sh, which contains checkconfig() and gen_key*() friends. This makes possible to reuse that code in the systemd sshd service unit and properly setup host keys the same way the openrc script does.
11 lines
136 B
SYSTEMD
11 lines
136 B
SYSTEMD
[Unit]
|
|
Description=OpenSSH Server Socket
|
|
Conflicts=sshd.service
|
|
|
|
[Socket]
|
|
ListenStream=22
|
|
Accept=yes
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|