158,7 → 158,7 |
function checkServiceStatus($service){ |
$response = false; |
exec("sudo /usr/bin/systemctl is-active ".escapeshellarg("$service.service"), $retval); |
foreach( $retval as $val ) { |
foreach ( $retval as $val ) { |
if ($val == "active"){ |
$response = true; |
break; |
262,7 → 262,7 |
<div class="panel-row"> |
<table width="100%" border=0 cellspacing=0 cellpadding=0> |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr> |
<?php foreach( $MainServiceStatus as $serviceName => $statusOK ) { ?> |
<?php foreach ( $MainServiceStatus as $serviceName => $statusOK ) { ?> |
<tr> |
<?php if ($statusOK) { ?> |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td> |
288,7 → 288,7 |
<table width="100%" border=0 cellspacing=0 cellpadding=0> |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr> |
<!-- <TR align="center"> --> |
<?php foreach( $FilterServiceStatus as $serviceName => $statusOK ) { ?> |
<?php foreach ( $FilterServiceStatus as $serviceName => $statusOK ) { ?> |
<tr> |
<?php if ($statusOK) { ?> |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td> |