diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-06 19:20:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-06 19:20:52 +0000 |
commit | d1a87413ff4bfa801a0740ce2334fd19367b64e3 (patch) | |
tree | 33d53af78b3ee0f21f164f2577ad8e05bfc88632 /etc/inc/service-utils.inc | |
parent | 7e77107f827942597621dc9a9b8dcb64723c1db6 (diff) | |
download | pfsense-d1a87413ff4bfa801a0740ce2334fd19367b64e3.zip pfsense-d1a87413ff4bfa801a0740ce2334fd19367b64e3.tar.gz |
Comment cleanup
Diffstat (limited to 'etc/inc/service-utils.inc')
-rw-r--r-- | etc/inc/service-utils.inc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index bc7b02e..6a04358 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -122,19 +122,6 @@ function restart_service($name) { } } -/* -The current version of this function doesn't appear to work on my system. -It returns 1 occasionally even when a nonsensical process is passed. - -The below function appears to fix this behavior: - -function is_process_running($process) { - $status = `/bin/ps ax | /usr/bin/grep {$process} | grep -v grep | wc -l`; - if($status > 0) return 1; - return 0; -} -*/ - function is_process_running($process) { $status = `/bin/ps ax | /usr/bin/grep {$process} | wc -l`; if($status > 2) return 1; |