");
+if ($ps_exe == "") { $ps_exe = "/bin/ps"; }
+
page_head("Server status page");
echo "";
@@ -134,30 +145,30 @@ if ($xmlout) {
fwrite($xmloutfile," \n");
}
-# Are the data-driven web sites running? Check for existence
-# of stop_web. If it is there, set $web_running to -1 for
-# "disabled," otherwise it will be already set to 1 for "enabled."
-# Set $web_host to the name of server hosting WWW site.
+// Are the data-driven web sites running? Check for existence
+// of stop_web. If it is there, set $web_running to -1 for
+// "disabled," otherwise it will be already set to 1 for "enabled."
+// Set $www_host to the name of server hosting WWW site.
$web_running = !file_exists("../../stop_web");
if ($web_running == 0) { $web_running = -1; }
-show_status($web_host, "data-driven web pages", $web_running);
+show_status($www_host, "data-driven web pages", $web_running);
-# Check for httpd.pid file of upload/download server.
+// Check for httpd.pid file of upload/download server.
$uldl_running = file_exists($uldl_pid);
if ($uldl_running == 0) { $uldl_running = -1; }
show_status($uldl_host, "upload/download server", $uldl_running);
-# $sched_running = !file_exists("../../stop_sched");
+// $sched_running = !file_exists("../../stop_sched");
$sched_running = file_exists($sched_pid);
if ($sched_running == 0) { $sched_running = -1; }
show_status($sched_host, "scheduler", $sched_running);
-# parse through config.xml to get all daemons running
-$config_xml = get_config();
+// parse through config.xml to get all daemons running
$cursor = 0;
-# while ($thisxml = trim(parse_next_element($config_xml,"",&$cursor))) {
-$thisxml = trim(parse_next_element($config_xml,"",&$cursor));
+while ($thisxml = trim(parse_next_element($config_xml,"",&$cursor))) {
+ $thisxml = trim(parse_next_element($config_xml,"",&$cursor));
$host = parse_element($thisxml,"");
+ if ($host == "") { $host = $project_host; }
$cmd = parse_element($thisxml,"");
list($ncmd) = explode(" ",$cmd);
$log = parse_element($thisxml,"\n \n");