39 lines
952 B
Diff
39 lines
952 B
Diff
From 136246c027dedb5c22c7a50ce8beebdecf85defe Mon Sep 17 00:00:00 2001
|
|
From: Scott Little <scott.little@windriver.com>
|
|
Date: Mon, 2 Oct 2017 15:32:15 -0400
|
|
Subject: [PATCH 3/7] WRS: openssh-service-file.patch
|
|
|
|
Conflicts:
|
|
SOURCES/sshd.service
|
|
---
|
|
SOURCES/sshd.service | 11 ++++++-----
|
|
1 file changed, 6 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/SOURCES/sshd.service b/SOURCES/sshd.service
|
|
index af7845c..5cba529 100644
|
|
--- a/SOURCES/sshd.service
|
|
+++ b/SOURCES/sshd.service
|
|
@@ -5,13 +5,14 @@ After=network.target sshd-keygen.service
|
|
Wants=sshd-keygen.service
|
|
|
|
[Service]
|
|
-Type=notify
|
|
EnvironmentFile=/etc/sysconfig/sshd
|
|
-ExecStart=/usr/sbin/sshd -D $OPTIONS
|
|
+ExecStart=/etc/init.d/sshd start
|
|
+ExecStop=/etc/init.d/sshd stop
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
-KillMode=process
|
|
-Restart=on-failure
|
|
-RestartSec=42s
|
|
+PIDFile=/var/run/sshd.pid
|
|
+KillMode=none
|
|
+#Restart=on-failure
|
|
+#RestartSec=42s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
--
|
|
1.9.1
|
|
|