[sshd]: Create /run/sshd under systemd using RuntimeDirectory
backport upstream patch
4c771b9c7f
Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
parent
124ce22b8c
commit
d0a3fa4487
@ -10,6 +10,8 @@ ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
|
|||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
RuntimeDirectory=sshd
|
||||||
|
RuntimeDirectoryMode=0755
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user