From 58669a00396f0d9ed4824b97490763790c8c198f Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Wed, 17 Apr 2019 23:30:41 -0400 Subject: [PATCH] configure then stop restart --- includes/functions.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index fa73abd..e33950d 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -602,12 +602,13 @@ function SaveTORAndVPNConfig() Starting Lokinet background daemon process. /dev/null &'); */ $output = shell_exec('sudo /home/pi/loki-network/lokilaunch.sh start'); echo "
$output
"; - /* sleep(10); */ - /*$output = shell_exec('/etc/init.d/dnsmasq restart'); - echo "
$output
"; */ + $output = shell_exec('/etc/init.d/dnsmasq stop'); + echo "
$output
"; + sleep(5); + $output = shell_exec('/etc/init.d/dnsmasq restart'); + echo "
$output
"; } elseif (isset($_POST['StopLokinet'])) { ?>