How to make monit launch process streamlined?

In the monit configuration file, we have a list of processes for which we expect monit monitoring. Each one looks like this:

check process process_name_here
  with pidfile /path/to/file.pid
  start program = "/bin/bash ..."
  stop program = "/bin/bash ..."
  if totalmem is greater than X MB for Y cycles then alert
  if N restarts within X cycles then alert
  group group_name

Since in this list we track about 30-40 processes, I have two questions:

1) If we restart the services (kill them all), can we start the start of all processes at the same time, and not the way it is done now (sequentially, one after another).

2) Can we indicate the order in which we would like to start the processes? How is the order determined? Is this the order they appear in the conf file? Is it by the name of the process? Anything else? This is especially important if No. 1 above is impossible ...

+4
source share
2 answers

depends on. .

, , b c. a, b c.

. b :

depends on process a

c :

depends on process b

, . , .

+1

, , , , monit .

, " ":

, .monitrc, , , .

, include, , - .

, DEPENDS,

0

Source: https://habr.com/ru/post/1530499/


All Articles