Przeglądaj źródła

Update sshd.conf

Update to CentOS 7 comand!
WebZation 9 lat temu
rodzic
commit
c5bb40461c
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      install/rhel/7/monit/sshd.conf

+ 3 - 2
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