From 4c771b9c7f2f9c5ddd0aefdbfb16441c2d7969a9 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 23 Jul 2017 13:14:50 +0100 Subject: Create /run/sshd under systemd using RuntimeDirectory rather than tmpfiles.d (thanks, Dmitry Smirnov; closes: #864190). --- debian/changelog | 2 ++ debian/systemd/ssh.service | 2 ++ debian/systemd/sshd.conf | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) delete mode 100644 debian/systemd/sshd.conf diff --git a/debian/changelog b/debian/changelog index d87e26fb6..153a8f7e5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ openssh (1:7.5p1-6) UNRELEASED; urgency=medium * Test configuration before starting or reloading sshd under systemd (closes: #865770). + * Create /run/sshd under systemd using RuntimeDirectory rather than + tmpfiles.d (thanks, Dmitry Smirnov; closes: #864190). -- Colin Watson Mon, 26 Jun 2017 10:09:28 +0100 diff --git a/debian/systemd/ssh.service b/debian/systemd/ssh.service index c75e59057..6e9552948 100644 --- a/debian/systemd/ssh.service +++ b/debian/systemd/ssh.service @@ -13,6 +13,8 @@ KillMode=process Restart=on-failure RestartPreventExitStatus=255 Type=notify +RuntimeDirectory=sshd +RuntimeDirectoryModes=0755 [Install] WantedBy=multi-user.target diff --git a/debian/systemd/sshd.conf b/debian/systemd/sshd.conf deleted file mode 100644 index 4fbeba1e8..000000000 --- a/debian/systemd/sshd.conf +++ /dev/null @@ -1 +0,0 @@ -d /run/sshd 0755 root root -- cgit v1.2.3