From c5bb40461c38cd14a7fa4240753bdb77c6be7d41 Mon Sep 17 00:00:00 2001 From: WebZation Date: Sat, 22 Oct 2016 02:25:14 -0200 Subject: [PATCH] Update sshd.conf Update to CentOS 7 comand! --- install/rhel/7/monit/sshd.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/rhel/7/monit/sshd.conf b/install/rhel/7/monit/sshd.conf index b28123129..12cef0428 100644 --- a/install/rhel/7/monit/sshd.conf +++ b/install/rhel/7/monit/sshd.conf @@ -1,3 +1,4 @@ check process sshd with pidfile /var/run/sshd.pid - start program = "/etc/init.d/sshd start" - stop program = "/etc/init.d/sshd stop" + start program = "/usr/bin/systemctl start sshd" + stop program = "/usr/bin/systemctl stop sshd" + if failed port 22 protocol ssh then restart