Skip to content

Commit 11c1c8f

Browse files
Merge pull request hestiacp#887 from openbrasil/patch-13
Monit: update sshd.conf
2 parents d192837 + c5bb404 commit 11c1c8f

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)