From d0a3fa448750a257611dbebcedbfbe35dcaad702 Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Wed, 5 Feb 2020 07:22:36 +0000 Subject: [PATCH] [sshd]: Create /run/sshd under systemd using RuntimeDirectory backport upstream patch https://salsa.debian.org/ssh-team/openssh/commit/4c771b9c7f2f9c5ddd0aefdbfb16441c2d7969a9 Signed-off-by: Guohan Lu --- files/sshd/sshd.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/sshd/sshd.service b/files/sshd/sshd.service index d79c574da5..25d524171c 100644 --- a/files/sshd/sshd.service +++ b/files/sshd/sshd.service @@ -10,6 +10,8 @@ ExecStart=/usr/sbin/sshd -D $SSHD_OPTS ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure +RuntimeDirectory=sshd +RuntimeDirectoryMode=0755 [Install] WantedBy=multi-user.target