This shows you the differences between two versions of the page.
| Previous revision | |||
| — | fuss:monit [2025/10/21 23:26] (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 ''< | ||
| + | |||
| + | |||
| + | |||
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.