Skip to content

Commit c5bb404

Browse files
authored
Update sshd.conf
Update to CentOS 7 comand!
1 parent be837cb commit c5bb404

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install/rhel/7/monit/sshd.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
check process sshd with pidfile /var/run/sshd.pid
2-
start program = "/etc/init.d/sshd start"
3-
stop program = "/etc/init.d/sshd stop"
2+
start program = "/usr/bin/systemctl start sshd"
3+
stop program = "/usr/bin/systemctl stop sshd"
4+
if failed port 22 protocol ssh then restart

0 commit comments

Comments
 (0)