myvesta/install/rhel/7/monit/sshd.conf
WebZation c5bb40461c Update sshd.conf
Update to CentOS 7 comand!
2016-10-22 02:25:14 -02:00

5 lines
201 B
Plaintext

check process sshd with pidfile /var/run/sshd.pid
start program = "/usr/bin/systemctl start sshd"
stop program = "/usr/bin/systemctl stop sshd"
if failed port 22 protocol ssh then restart