[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
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
RuntimeDirectory=sshd
|
||||
RuntimeDirectoryMode=0755
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user