From a02680a46d812be8ead71bebd6db114612e87263 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Wed, 16 Feb 2022 09:31:34 -0500 Subject: [PATCH] verbose restart so you know its working --- scripts/service_controls.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/service_controls.php b/scripts/service_controls.php index b259fbd..6f26c1d 100644 --- a/scripts/service_controls.php +++ b/scripts/service_controls.php @@ -88,9 +88,19 @@ error_reporting(E_ALL); if(isset($_POST['submit'])){ $command = $_POST['submit']; -$results = shell_exec("$command"); -echo "$results"; +if($command == 'restart_services.sh'){ + $str= "

Restarting Services

+

Please wait 60 seconds

"; + echo str_pad($str, 4096); + ob_flush(); + flush(); } +if(isset($command)){ +$results = shell_exec("$command 2>&1"); +echo "
$results
"; +} +} +ob_end_flush(); ?>