MFC 12461

"\t0\n" > 0, therefore is_process_running always returned 1. Btw, now it returns true or false, cause I don't see how it could be any different. Should just work now.
This commit is contained in:
Scott Ullrich 2006-05-30 19:50:36 +00:00
parent 610b113684
commit 5b67f7acd5

View File

@ -133,9 +133,8 @@ function restart_service($name) {
}
function is_process_running($process) {
$status = `/bin/ps awux | /usr/bin/grep {$process} | grep -v grep | wc -l`;
if($status > 0) return 1;
return 0;
$running = (trim(shell_exec("ps axwu | grep $process | grep -v grep")) != '');
return $running;
}
function is_dhcp_running($interface) {