diff options
-rw-r--r-- | etc/inc/service-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index 0787b20..2c9b117 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) { - $status = `/bin/ps ax | /usr/bin/grep {$process} | wc -l`; - if($status > 2) return 1; + $status = `/bin/ps ax | /usr/bin/grep {$process} | grep -v grep | wc -l`; + if($status > 0) return 1; return 0; } |