ansible-role-mariadb/templates/monit.conf.j2
phil 1f1c8d1542 Fix typos
Add file extension to templates
2023-08-14 12:31:32 +02:00

9 lines
396 B
Django/Jinja

check process mariadb with pidfile /run/mysqld/mysqld.pid
group database
start program = "/usr/sbin/service mysql start"
stop program = "/usr/sbin/service mysql stop"
if failed unixsocket /run/mysqld/mysqld.sock protocol mysql
username "{{ monit_sql_user }}" password "{{ monit_sql_password }}"
for 3 times within 4 cycles then restart
if 5 restarts with 5 cycles then timeout