mirror of
https://ghfast.top/https://github.com/discourse/docker_manager.git
synced 2026-05-27 00:44:01 +08:00
``` root@07d212411142-app:/var/www/discourse# pgrep -f "pitchfork monitor" 30864 root@07d212411142-app:/var/www/discourse# rails c Loading production environment (Rails 8.0.4) discourse(prod)> `pgrep -af "pitchfork monitor"` => "11035 sh -c pgrep -af \"pitchfork monitor\"\n30864 pitchfork monitor - \n" discourse(prod)> `pgrep -f "pitchfork monitor"`.strip.to_i => 12545 ``` The current regex is getting the pid of the pgrep shell command, rather than the actual pitchfork monitor. Using ^ anchor avoids this problem. |
||
|---|---|---|
| .. | ||
| lib | ||
| requests | ||
| support | ||
| system | ||
| plugin_helper.rb | ||