From 750ad167079020348c33725a5723c3929953979f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 25 Jun 2005 23:07:09 +0000 Subject: Really make is_process_running() work as it should for the frickin 5th time. --- etc/inc/service-utils.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc/service-utils.inc') diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index d2ab1c8..c81a28a 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -123,8 +123,8 @@ function restart_service($name) { } } -function is_process_running($process, $ps = "") { - $status = `/bin/ps ax | /usr/bin/grep {$service_name} | wc -l`; +function is_process_running($process) { + $status = `/bin/ps ax | /usr/bin/grep {$process} | wc -l`; if($status > 2) return 1; return 0; } -- cgit v1.1