Files
overlay/sys-kernel/dracut-sshd/files/gentoo-sshd.service.patch

21 lines
742 B
Diff

--- a/46sshd/sshd.service 2020-11-15 11:18:05.875510770 +0100
+++ b/46sshd/sshd.service 2020-11-15 11:18:58.253009836 +0100
@@ -11,7 +11,7 @@
#
# On distributions such as Gentoo, sshd doesn't come with
# systemd support, thus, one has to set `Type=simple` there.
-Type=notify
+Type=simple
EnvironmentFile=-/etc/crypto-policies/back-ends/opensshserver.config
EnvironmentFile=-/etc/crypto-policies/back-ends/openssh-server.config
@@ -21,7 +21,7 @@
# Start command requires the `-e` option if and only if `Type=simple`
# is configured, see above.
-ExecStart=/usr/sbin/sshd -D $SSHD_OPTS $OPTIONS $CRYPTO_POLICY
+ExecStart=/usr/sbin/sshd -D -e $SSHD_OPTS $OPTIONS $CRYPTO_POLICY
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process