#!/usr/local/bin/php "") get_package_rcd_details($_GET['service'] . ".sh"); if($_GET['restartservice'] == "true") { mwexec("/sbin/killall $executable_name"); mwexec("/bin/sh /usr/local/etc/rc.d/{$raw_name}.sh"); $status = is_service_running($executable_name); if($status == 1) { $savemsg = "{$package_name} has been restarted."; } else { $error_message = exec_command("/bin/sh /usr/local/etc/rc.d/{$raw_name}.sh"); $savemsg = "There was a error restarting {$package_name}.
{$error_message}"; } } if($_GET['stopservice'] == "true") { mwexec("/sbin/killall $executable_name"); $savemsg = "{$package_name} has been stopped."; } if($_GET['startservice'] == "true") { mwexec("/bin/sh /usr/local/etc/rc.d/{$raw_name}.sh"); if($status == 1) { $savemsg = "{$package_name} has been started."; } else { $error_message = exec_command("/bin/sh /usr/local/etc/rc.d/{$raw_name}.sh"); $savemsg = "There was a error restarting {$package_name}.
{$error_message}"; } } /* batch mode, allow other scripts to call this script */ if($_GET['batch'] <> "") exit; ?>
=$title?>