", $command, "
";//DEBUG // execute command echo "Restarting service ", $service, " … "; exec($command, $output, $exitcode); // echo "Output is
", join("
", $output), "

";//DEBUG if ( $exitcode == "0" ) { echo "OK"; } else { echo "failed with exit code ", $exitcode; } ?>