2 ms·
Haproxy supports a directive called pidfile that causes it to write it's pid to that file at startup. If you still want grep, without it matching itself, an ol
by tyingq 10y ago
Haproxy supports a directive called pidfile that causes it to write it's pid to that file at startup.
If you still want grep, without it matching itself, an old trick is egrep '[h]aproxy' or similar.
Egrep, as opposed to pgrep, is more widely installed on non Linux systems like osx.