This shows you the differences between two versions of the page.
Previous revision | |||
— | fuss:monit [2022/04/19 08:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Check Process by Pattern Match ====== | ||
+ | |||
+ | Sometimes when a daemon really cannot create a PID file, the '' | ||
+ | <code bash> | ||
+ | ps ax | grep < | ||
+ | </ | ||
+ | |||
+ | where ''< | ||
+ | <code bash> | ||
+ | monit procmatch < | ||
+ | </ | ||
+ | |||
+ | where ''< | ||
+ | |||
+ | After that, a monit configuration file can be changed, from: | ||
+ | < | ||
+ | check process myprocess with pidfile / | ||
+ | </ | ||
+ | |||
+ | to: | ||
+ | < | ||
+ | check process myprocess matching "< | ||
+ | </ | ||
+ | |||
+ | in order to match a process by the ''< | ||
+ | |||
+ | |||
+ | |||