diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-06-10 21:46:52 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-07-16 09:39:07 +0200 |
commit | 855e8d63a67aee347296e17e596d45be0d75ac9d (patch) | |
tree | 9ea008f6645993cc305a5737dd536cf3f29f3595 /meta-systemd | |
parent | c203043683deff90b4d80c326bf6b27a28a59386 (diff) | |
download | meta-openembedded-855e8d63a67aee347296e17e596d45be0d75ac9d.tar.gz |
openssh: move systemd support to meta-systemd
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Diffstat (limited to 'meta-systemd')
4 files changed, 40 insertions, 0 deletions
diff --git a/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh/sshd.socket b/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh/sshd.socket new file mode 100644 index 0000000000..753a33b393 --- /dev/null +++ b/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh/sshd.socket | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Conflicts=sshd.service | ||
3 | |||
4 | [Socket] | ||
5 | ExecStartPre=/bin/mkdir -p /var/run/sshd | ||
6 | ListenStream=22 | ||
7 | Accept=yes | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=sockets.target | ||
11 | Also=sshdgenkeys.service | ||
diff --git a/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh/sshd@.service b/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh/sshd@.service new file mode 100644 index 0000000000..d118490bdb --- /dev/null +++ b/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh/sshd@.service | |||
@@ -0,0 +1,9 @@ | |||
1 | [Unit] | ||
2 | Description=OpenSSH Per-Connection Daemon | ||
3 | After=sshdgenkeys.service | ||
4 | |||
5 | [Service] | ||
6 | ExecStart=-/usr/sbin/sshd -i | ||
7 | ExecReload=/bin/kill -HUP $MAINPID | ||
8 | StandardInput=socket | ||
9 | StandardError=syslog | ||
diff --git a/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh/sshdgenkeys.service b/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh/sshdgenkeys.service new file mode 100644 index 0000000000..c717214c55 --- /dev/null +++ b/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh/sshdgenkeys.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=SSH Key Generation | ||
3 | |||
4 | [Service] | ||
5 | ExecStart=/usr/bin/ssh-keygen -A | ||
6 | Type=oneshot | ||
7 | RemainAfterExit=yes | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||
diff --git a/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh_6.0p1.bbappend b/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh_6.0p1.bbappend new file mode 100644 index 0000000000..a708a36c1c --- /dev/null +++ b/meta-systemd/meta-oe/recipes-connectivity/openssh/openssh_6.0p1.bbappend | |||
@@ -0,0 +1,10 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | PRINC := "${@int(PRINC) + 3}" | ||
4 | |||
5 | SYSTEMD_PACKAGES = "openssh-sshd-systemd" | ||
6 | SYSTEMD_SERVICE = "sshd.socket" | ||
7 | |||
8 | inherit systemd | ||
9 | |||
10 | SRC_URI += "file://sshd.socket file://sshd@.service file://sshdgenkeys.service" | ||