From d1b43a28653c780648d4625c7f56667883afbf40 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 26 Jan 2016 13:54:53 +0100 Subject: [PATCH] Update sshd service file to forking (as #1291172) --- sshd.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sshd.service b/sshd.service index 6c6a664..825a931 100644 --- a/sshd.service +++ b/sshd.service @@ -5,8 +5,10 @@ After=network.target sshd-keygen.service Wants=sshd-keygen.service [Service] +Type=forking +PIDFile=/var/run/sshd.pid EnvironmentFile=-/etc/sysconfig/sshd -ExecStart=/usr/sbin/sshd -D $OPTIONS +ExecStart=/usr/sbin/sshd $OPTIONS ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure