diff --git a/bundles/monit/files/monitrc b/bundles/monit/files/monitrc index 89b0dd2..6fd724f 100644 --- a/bundles/monit/files/monitrc +++ b/bundles/monit/files/monitrc @@ -33,12 +33,6 @@ check process ${systemd_service} matching "/lib/systemd/${systemd_service}" stop program = "/usr/bin/systemctl stop ${systemd_service}.service" % endfor -check process sshd matching "/usr/sbin/sshd" - start program = "/bin/systemctl start sshd.service" - stop program = "/bin/systemctl stop sshd.service" - if failed port 22 for 2 cycles then restart - if 3 restarts within 5 cycles then alert - % for service,options in sorted(monit.get('services', {}).items()): check process ${service} matching "${options['bin']}" start program = "/bin/systemctl start ${options.get('systemd_unit', 'service')}.service"