Revision f80f3194
Added by Scott Ullrich over 18 years ago
etc/inc/service-utils.inc | ||
---|---|---|
138 | 138 |
} |
139 | 139 |
|
140 | 140 |
function is_process_running($process) { |
141 |
$running = (trim(shell_exec("ps axwu | grep $process | grep -v grep")) != '');
|
|
141 |
$running = (trim(shell_exec("ps axwu | grep '\b{$process}\b' | grep -v 'grep'")) != '');
|
|
142 | 142 |
return $running; |
143 | 143 |
} |
144 | 144 |
|
Also available in: Unified diff
MFC 15382
fix: is_process_running() does inaccurate matches