diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2020-04-23 15:12:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-26 14:00:50 +0100 |
commit | 4f568b44c6ff4e1cb47006efca2e3233035d9c77 (patch) | |
tree | 5cd344cade17102570c5ffed61057b2cfa0b8d64 /meta/recipes-connectivity/openssh | |
parent | df77ee47237244f400da4de62f201a55ec1a8f8d (diff) | |
download | poky-4f568b44c6ff4e1cb47006efca2e3233035d9c77.tar.gz |
openssh: Move sshdgenkeys.service to sshd.socket
sshd.socket launches the templated sshd@.service, so by moving the
sshdgenkeys.service to sshd.socket, key generation can start in advance
of a connection.
(From OE-Core rev: af38a39b4bed9e43c5075008be47ca72191a489e)
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssh')
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh/sshd.socket | 1 | ||||
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh/sshd@.service | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd.socket b/meta/recipes-connectivity/openssh/openssh/sshd.socket index 12c39b26b5..8d76d62309 100644 --- a/meta/recipes-connectivity/openssh/openssh/sshd.socket +++ b/meta/recipes-connectivity/openssh/openssh/sshd.socket | |||
@@ -1,5 +1,6 @@ | |||
1 | [Unit] | 1 | [Unit] |
2 | Conflicts=sshd.service | 2 | Conflicts=sshd.service |
3 | Wants=sshdgenkeys.service | ||
3 | 4 | ||
4 | [Socket] | 5 | [Socket] |
5 | ExecStartPre=@BASE_BINDIR@/mkdir -p /var/run/sshd | 6 | ExecStartPre=@BASE_BINDIR@/mkdir -p /var/run/sshd |
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd@.service b/meta/recipes-connectivity/openssh/openssh/sshd@.service index 9d83dfb2bb..422450c7a1 100644 --- a/meta/recipes-connectivity/openssh/openssh/sshd@.service +++ b/meta/recipes-connectivity/openssh/openssh/sshd@.service | |||
@@ -1,13 +1,11 @@ | |||
1 | [Unit] | 1 | [Unit] |
2 | Description=OpenSSH Per-Connection Daemon | 2 | Description=OpenSSH Per-Connection Daemon |
3 | Wants=sshdgenkeys.service | ||
4 | After=sshdgenkeys.service | 3 | After=sshdgenkeys.service |
5 | 4 | ||
6 | [Service] | 5 | [Service] |
7 | Environment="SSHD_OPTS=" | 6 | Environment="SSHD_OPTS=" |
8 | EnvironmentFile=-/etc/default/ssh | 7 | EnvironmentFile=-/etc/default/ssh |
9 | ExecStart=-@SBINDIR@/sshd -i $SSHD_OPTS | 8 | ExecStart=-@SBINDIR@/sshd -i $SSHD_OPTS |
10 | ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID | ||
11 | StandardInput=socket | 9 | StandardInput=socket |
12 | StandardError=syslog | 10 | StandardError=syslog |
13 | KillMode=process | 11 | KillMode=process |