]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
openssh: add systemd readiness notification support
authorXiangyu Chen <xiangyu.chen@windriver.com>
Wed, 15 Nov 2023 05:05:07 +0000 (13:05 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Nov 2023 15:30:46 +0000 (15:30 +0000)
commit4090dca8e44ec79ccb9a674db31e835d20b51888
tree327b5430186355076f3135aec2f5d2541320b282
parentd61add65014617c1e3c183fb1cf333b4b226d318
openssh: add systemd readiness notification support

The sshd keeps on terminating and restarting in servel minutes, we can observe
log from journalctl that the sshd was killed by systemd with signal 15:

    systemd[1]: sshd.service start operation timed out. Terminating.
    sshd[374]: Received signal 15; terminating.

When the sshd as a systemd service, it need to tell systemd with a "READY" status,
and when it is restarted, it need to tell systemd with a "RELOADING" status, otherwise,
systemd would treat it as failing service and restart it again.

Taken a patch from openssh upstream PR[1], that after using a signal to tell systemd
it is ready or reload now.

Ref:
[1] https://github.com/openssh/openssh-portable/pull/375/commits/be187435911cde6cc3cef6982a508261074f1e56

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-connectivity/openssh/openssh/0001-systemd-Add-optional-support-for-systemd-sd_notify.patch [new file with mode: 0644]
meta/recipes-connectivity/openssh/openssh_9.5p1.bb