summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_services.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-31 19:23:11 +0000
committerErmal <eri@pfsense.org>2010-08-31 19:23:11 +0000
commit9eda72592e6b4e92ed35d5382683c576395d4c62 (patch)
treedd370fd2b15921064d0fd6d83df53c62a3458fbe /usr/local/www/status_services.php
parent319cbd5eb8d53678f6064b5b090a93012b0b4ecf (diff)
downloadpfsense-9eda72592e6b4e92ed35d5382683c576395d4c62.zip
pfsense-9eda72592e6b4e92ed35d5382683c576395d4c62.tar.gz
More fixes to status services.
Diffstat (limited to 'usr/local/www/status_services.php')
-rwxr-xr-xusr/local/www/status_services.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php
index 530a346..ff84161 100755
--- a/usr/local/www/status_services.php
+++ b/usr/local/www/status_services.php
@@ -228,13 +228,10 @@ include("fbegin.inc");
<?php
-exec("/bin/ps ax | awk '{ print $5 }'", $psout);
-array_shift($psout);
-foreach($psout as $line) {
- $ps[] = trim(array_pop(explode(' ', array_pop(explode('/', $line)))));
-}
-
-$services = $config['installedpackages']['service'];
+if (is_array($config['installedpackages']['service']))
+ $services = $config['installedpackages']['service'];
+else
+ $services = array();
/* Add services that are in the base.
*
@@ -342,7 +339,7 @@ if (count($services) > 0) {
if ($service['name'] == "openvpn") {
$running = is_pid_running("{$g['varrun_path']}/openvpn_{$service['mode']}{$service['vpnid']}.pid");
} else {
- $running = (is_service_running($service['name'], $ps) || is_process_running($service['name']) );
+ $running = is_service_running($service['name']);
}
if($running) {
echo '<td class="listr"><center>';
OpenPOWER on IntegriCloud