[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Considerations when using Monit with systemd

From: Jamie Burchell
Subject: Considerations when using Monit with systemd
Date: Tue, 16 Apr 2019 13:01:03 +0100



I’m successfully (and happily) using Monit to monitor services that have suddenly exited on a CentOS 7 setup. For example:


check process mariadb with pidfile /var/lib/mysql/

      start program = "/bin/systemctl start mariadb"

      stop program = "/bin/systemctl stop mariadb"

      restart program = "/bin/systemctl restart mariadb"

      if failed port 3306 protocol mysql then restart

      if 3 restarts within 5 cycles then unmonitor


Do I need to do anything else to make Monit and systemd play together nicely? My concerns are:


1. What happens when the system is shutting down, does Monit frantically try to start things up that are shutting down, or has Monit itself been stopped by that point?


2. Is there are problem with Monit trying to start services at the same time systemd does at system boot time?


I have read


Thanks in advance!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]